Browse Source

调用xcopy 复制文件。

master
yibo 7 years ago
parent
commit
14f2e8cc33
2 changed files with 5 additions and 6 deletions
  1. +0
    -6
      ButcherFactory.BO/Utils/FormUtil.cs
  2. +5
    -0
      ButcherFactory.Form/ButcherFactory.Form.csproj

+ 0
- 6
ButcherFactory.BO/Utils/FormUtil.cs View File

@ -13,13 +13,7 @@ namespace ButcherFactory.BO.Utils
{
public static Form CreateFrom()
{
#if DEBUG
var dll = @"C:\BwpB3Project\src\ButcherFactorySolution\ButcherFactory.Form\bin\Debug\ButcherFactory.Form.dll";
#endif
#if !DEBUG
var dll = Path.Combine(Directory.GetCurrentDirectory(), "ButcherFactory.Form.dll");
#endif
if (!File.Exists(dll))
throw new Exception("缺少必要的程序集文件 ButcherFactory.Form.dll");


+ 5
- 0
ButcherFactory.Form/ButcherFactory.Form.csproj View File

@ -179,6 +179,11 @@
</Page>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if $(Configuration)==Debug (
xcopy "$(ProjectDir)bin\debug\*.*" "$(ProjectDir)..\ButcherFactory.Login\bin\debug\" /y
)</PostBuildEvent>
</PropertyGroup>
<!-- 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">


Loading…
Cancel
Save