OSDN Git Service

#39661 [Dridi's PATCH 4/9] Replace PostBuildEvent scripts with XML targets
[dtxmania/dtxmania.git] / DTXCreator / DTXCreator.csproj
index 31c7e94..42c828a 100644 (file)
@@ -10,7 +10,7 @@
     <AppDesignerFolder>Properties</AppDesignerFolder>
     <RootNamespace>DTXCreator</RootNamespace>
     <AssemblyName>DTXCreator</AssemblyName>
-    <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
+    <TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
     <ApplicationIcon>コード\99.リソース\DTXC.ico</ApplicationIcon>
     <ApplicationManifest>DTXCreator.exe.x86.manifest</ApplicationManifest>
     <UseApplicationTrust>false</UseApplicationTrust>
     <BootstrapperEnabled>true</BootstrapperEnabled>
   </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+  <PropertyGroup>
+    <SignAssembly>false</SignAssembly>
+  </PropertyGroup>
+  <PropertyGroup>
+    <AssemblyOriginatorKeyFile>
+    </AssemblyOriginatorKeyFile>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
     <DebugSymbols>true</DebugSymbols>
-    <OutputPath>bin\x86\Debug\</OutputPath>
+    <OutputPath>bin\Debug\</OutputPath>
     <DefineConstants>TRACE;DEBUG;USE_ENGLISHRESOURCE_ USE_GERMANRESOURCE_</DefineConstants>
+    <NoWarn>0219</NoWarn>
     <DebugType>full</DebugType>
-    <PlatformTarget>x86</PlatformTarget>
+    <PlatformTarget>AnyCPU</PlatformTarget>
     <ErrorReport>prompt</ErrorReport>
-    <NoWarn>0219</NoWarn>
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
-    <OutputPath>bin\x86\Release\</OutputPath>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
+    <OutputPath>bin\Release\</OutputPath>
     <DefineConstants>TRACE</DefineConstants>
     <Optimize>true</Optimize>
+    <NoWarn>0219</NoWarn>
     <DebugType>pdbonly</DebugType>
-    <PlatformTarget>x86</PlatformTarget>
+    <PlatformTarget>AnyCPU</PlatformTarget>
     <ErrorReport>prompt</ErrorReport>
-    <NoWarn>0219</NoWarn>
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     <Prefer32Bit>false</Prefer32Bit>
   </PropertyGroup>
-  <PropertyGroup>
-    <SignAssembly>false</SignAssembly>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+    <DebugSymbols>true</DebugSymbols>
+    <OutputPath>bin\x64\Debug\</OutputPath>
+    <DefineConstants>TRACE;DEBUG;USE_ENGLISHRESOURCE_ USE_GERMANRESOURCE_</DefineConstants>
+    <NoWarn>0219</NoWarn>
+    <DebugType>full</DebugType>
+    <PlatformTarget>x64</PlatformTarget>
+    <ErrorReport>prompt</ErrorReport>
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
   </PropertyGroup>
-  <PropertyGroup>
-    <AssemblyOriginatorKeyFile>
-    </AssemblyOriginatorKeyFile>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+    <OutputPath>bin\x64\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <Optimize>true</Optimize>
+    <NoWarn>0219</NoWarn>
+    <DebugType>pdbonly</DebugType>
+    <PlatformTarget>x64</PlatformTarget>
+    <ErrorReport>prompt</ErrorReport>
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+    <DebugSymbols>true</DebugSymbols>
+    <OutputPath>bin\x86\Debug\</OutputPath>
+    <DefineConstants>TRACE;DEBUG;USE_ENGLISHRESOURCE_ USE_GERMANRESOURCE_</DefineConstants>
+    <NoWarn>0219</NoWarn>
+    <DebugType>full</DebugType>
+    <PlatformTarget>x86</PlatformTarget>
+    <ErrorReport>prompt</ErrorReport>
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+    <OutputPath>bin\x86\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <Optimize>true</Optimize>
+    <NoWarn>0219</NoWarn>
+    <DebugType>pdbonly</DebugType>
+    <PlatformTarget>x86</PlatformTarget>
+    <ErrorReport>prompt</ErrorReport>
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="System" />
     </ProjectReference>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
   <Target Name="AfterBuild">
+    <!--Copy SourceFiles="$(TargetDir)*.dll" DestinationFolder="$(SolutionDir)RuntimeResources\dll" /-->
+    <Copy SourceFiles="$(TargetDir)$(TargetFileName)" DestinationFolder="$(SolutionDir)RuntimeResources" />
+    <Copy SourceFiles="$(TargetDir)$(TargetFileName).config" DestinationFolder="$(SolutionDir)RuntimeResources" />
+    <Copy SourceFiles="$(TargetDir)ja-JP\DTXCreator.resources.dll" DestinationFolder="$(SolutionDir)RuntimeResources\ja-JP\" />
   </Target>
-  -->
-  <PropertyGroup>
-    <PostBuildEvent>echo.
-echo ビルド後イベントを開始します。
-
-set RUNTIMEDIR="$(SolutionDir)RuntimeResources"
-
-echo.
-echo (1) 出力フォルダ内のdllファイルを出力フォルダ/dllフォルダへ移動します。
-set DESTDIR="$(TargetDir)dll"
-if not exist %25DESTDIR%25 mkdir %25DESTDIR%25
-move /Y "$(TargetDir)*.dll" %25DESTDIR%25
-
-echo.
-echo (2) 出力フォルダ から 実行時リソースフォルダ にコピーします。(dllは、日付の新しいファイルのみ)
-set DESTDIR=%25RUNTIMEDIR%25
-xcopy "$(TargetDir)$(TargetFileName)" %25DESTDIR%25 /Y
-xcopy "$(TargetDir)$(TargetFileName).config" %25DESTDIR%25 /Y
-set DESTDIR="%25RUNTIMEDIR%25\ja-JP"
-if not exist %25DESTDIR%25 mkdir %25DESTDIR%25
-xcopy "$(TargetDir)ja-JP" %25DESTDIR%25 /Y
-set DESTDIR="%25RUNTIMEDIR%25\dll"
-if not exist %25DESTDIR%25 mkdir %25DESTDIR%25
-xcopy  "$(TargetDir)dll" %25DESTDIR%25 /Y /D
-
-echo.
-echo (3) 実行時リソースフォルダ から 出力フォルダ にコピーします。(日付の新しいファイルのみ)
-set DESTDIR="$(TargetDir)dll"
-if not exist %25DESTDIR%25 mkdir %25DESTDIR%25
-xcopy  "%25RUNTIMEDIR%25\dll" %25DESTDIR%25 /Y /D
-
-echo.
-echo ビルド後イベントを終了しました。
-</PostBuildEvent>
-  </PropertyGroup>
-</Project>
\ No newline at end of file
+</Project>