修复 BuildInfo.cs 导致的编译问题

This commit is contained in:
Genteure 2020-02-05 17:23:39 +08:00
parent 133d3686db
commit 1d8faa822e
6 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -261,5 +261,5 @@ paket-files/
__pycache__/
*.pyc
**/BuildInfo.cs
TempBuildInfo/*.cs
BililiveRecorder.WPF/Nlog.config

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>0.0.0.0</Version>
@ -17,7 +17,7 @@
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<Compile Include="BuildInfo.cs" />
<Compile Include="..\TempBuildInfo\BuildInfo.Core.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="4.8.1" />

View File

@ -17,7 +17,7 @@
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<Compile Include="BuildInfo.cs" />
<Compile Include="..\TempBuildInfo\BuildInfo.FlvProcessor.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="4.8.1" />

View File

@ -131,7 +131,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="BuildInfo.cs" />
<Compile Include="..\TempBuildInfo\BuildInfo.WPF.cs" />
<Compile Include="ClickSelectTextBox.xaml.cs">
<DependentUpon>ClickSelectTextBox.xaml</DependentUpon>
</Compile>

View File

@ -4,6 +4,6 @@ $isAppveyor = if ($env:APPVEYOR -eq $null) { "false" } else { $env:APPVEYOR }
$buildversion = if ($env:APPVEYOR_BUILD_VERSION -eq $null) { "本地编译" } else { $env:APPVEYOR_BUILD_VERSION }
$githash = git rev-parse --verify HEAD
(Get-Content .\BuildInfo.txt).Replace('[PROJECT_NAME]', $args).Replace('[APPVEYOR]', $isAppveyor.ToLower()).Replace('[VERSION]', $buildversion).Replace('[GIT_HASH]', $githash).Replace('[GIT_HASH_S]', $githash.Substring(0, 8)) | Set-Content ".\BililiveRecorder.$args\BuildInfo.cs"
(Get-Content .\BuildInfo.txt).Replace('[PROJECT_NAME]', $args).Replace('[APPVEYOR]', $isAppveyor.ToLower()).Replace('[VERSION]', $buildversion).Replace('[GIT_HASH]', $githash).Replace('[GIT_HASH_S]', $githash.Substring(0, 8)) | Set-Content ".\TempBuildInfo\BuildInfo.$args.cs"
Write-Output "BuildInfo for $args patched"

0
TempBuildInfo/.gitkeep Normal file
View File