mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
修复 BuildInfo.cs 导致的编译问题
This commit is contained in:
parent
133d3686db
commit
1d8faa822e
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -261,5 +261,5 @@ paket-files/
|
|||
__pycache__/
|
||||
*.pyc
|
||||
|
||||
**/BuildInfo.cs
|
||||
TempBuildInfo/*.cs
|
||||
BililiveRecorder.WPF/Nlog.config
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
0
TempBuildInfo/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user