增加编译打包好后复制到 Releases文件夹
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
+1
-1
@@ -75,7 +75,7 @@
|
||||
|
||||
<Separator DockPanel.Dock="Bottom" Background="{x:Null}" Margin="0,10" Opacity="0.5" />
|
||||
|
||||
<TextBlock TextWrapping="Wrap" DockPanel.Dock="Top" Text="{Binding PathValidationError}" Visibility="{Binding PathValidationErrorVisibility}" Margin="0,10,0,0" />
|
||||
<TextBlock TextWrapping="Wrap" DockPanel.Dock="Top" Text="{Binding PathValidationError}" Visibility="{Binding PathValidationErrorVisibility}" Margin="0,10,0,0" Foreground="White" />
|
||||
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
|
||||
@@ -191,6 +191,9 @@
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>IF EXIST "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\MSI\Installer.msi" COPY "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\MSI\Installer.msi" "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\" /Y</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Target Name="CopyReleaseBundleToReleases" AfterTargets="AfterBuild" Condition="'$(Configuration)' == 'Release' and Exists('$(TargetPath)')">
|
||||
<Exec Command="powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$source = '$(TargetPath)'; $version = (Get-Item -LiteralPath $source).VersionInfo.ProductVersion; $directory = Join-Path '$(MSBuildProjectDirectory)\..\..\..\..\Releases' ''; New-Item -ItemType Directory -Force -Path $directory | Out-Null; Copy-Item -LiteralPath $source -Destination (Join-Path $directory ('XplorePlane-' + $version + '.exe')) -Force"" />
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\WPFInstaller.Ui\Bootstrapper.Ui.csproj">
|
||||
<Name>Bootstrapper.Ui</Name>
|
||||
|
||||
Reference in New Issue
Block a user