Pārlūkot izejas kodu

release 生成 报告时 从debug中复制 config、resource 文件夹

cxs 11 mēneši atpakaļ
vecāks
revīzija
10e34b6b0b
1 mainītis faili ar 9 papildinājumiem un 2 dzēšanām
  1. 9 2
      OTSIncAReportApp/OTSIncAReportApp.csproj

+ 9 - 2
OTSIncAReportApp/OTSIncAReportApp.csproj

@@ -263,6 +263,9 @@
     <ErrorReport>prompt</ErrorReport>
     <Prefer32Bit>true</Prefer32Bit>
   </PropertyGroup>
+  <PropertyGroup>
+    <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+  </PropertyGroup>
   <ItemGroup>
     <Reference Include="BouncyCastle.Crypto">
       <HintPath>..\OpenDll\WordApiDll\BouncyCastle.Crypto.dll</HintPath>
@@ -1697,7 +1700,11 @@
   </Target>
   <Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" />
   <PropertyGroup>
-    <PostBuildEvent>
-    </PostBuildEvent>
+    <PostBuildEvent>If $(Configuration) == Debug (
+echo debug donot copy files
+) else (
+ xcopy /E /I /Y "$(SolutionDir)Bin\x64\Debug\Config" "$(TargetDir)Config"
+xcopy /E /I /Y "$(SolutionDir)Bin\x64\Debug\Resources" "$(TargetDir)Resources" 
+)</PostBuildEvent>
   </PropertyGroup>
 </Project>