更新客户端渲染,更新了壳
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
<Project>
|
||||
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
|
||||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<CommonTags Condition="$(IsCoreProject)">$(CommonTags);.NET</CommonTags>
|
||||
<PackageTags Condition="'$(PackageTags)' != ''">$(CommonTags);$(PackageTags)</PackageTags>
|
||||
<PackageTags Condition="'$(PackageTags)' == ''">$(CommonTags)</PackageTags>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(GeneratePackageOnBuild)' == 'true'">
|
||||
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<DeterministicSourcePaths Condition="'$(SourceLinkEnabled)' == 'true'">true</DeterministicSourcePaths>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="'$(GeneratePackageOnBuild)' == 'true'">
|
||||
<None Include="$(BuildToolsDirectory)nuget.png" Pack="true" PackagePath="\Icon.png" Visible="False" />
|
||||
<None Include="$(RepositoryDirectory)ThirdPartyNotices.txt" Pack="true" PackagePath="\" Visible="False" />
|
||||
<None Include="$(RepositoryDirectory)LICENSE.md" Pack="true" PackagePath="\LICENSE.md" Visible="False" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(MSBuildProjectExtension)' != '.dcproj' and '$(MSBuildProjectExtension)' != '.sfproj' and '$(VisualStudioTemplateProject)' != 'true' and '$(VisualStudioExtensionProject)' != 'true'">
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="AsyncFixer">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="IDisposableAnalyzers">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="StyleCop.Analyzers">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'netstandard2.1'">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'net481'">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'net472'">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="PolySharp" Condition="'$(TargetFramework)' == 'net462'">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build; analyzers</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(MSBuildProjectExtension)' != '.dcproj' and '$(MSBuildProjectExtension)' != '.sfproj'">
|
||||
<AdditionalFiles Include="$(MSBuildThisFileDirectory)BannedSymbols.txt" />
|
||||
</ItemGroup>
|
||||
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
|
||||
<ItemGroup>
|
||||
<AssemblyAttribute
|
||||
Include="System.Reflection.AssemblyMetadataAttribute"
|
||||
Condition="'$(SourceRevisionId)' != ''"
|
||||
>
|
||||
<_Parameter1>CommitHash</_Parameter1>
|
||||
<_Parameter2>$(SourceRevisionId)</_Parameter2>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<!-- Configure trimming for projects on .NET 6 and above -->
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net7.0' OR '$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net10.0'">
|
||||
<IsTrimmable>true</IsTrimmable>
|
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||
<EnableAotAnalyzer>true</EnableAotAnalyzer>
|
||||
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(SourceLinkEnabled)' == 'true' AND '$(GeneratePackageOnBuild)' == 'true'">
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>$(RepositoryDirectory)\src\lepo.snk</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<Target
|
||||
Name="WpfSourceLinkWorkaround"
|
||||
BeforeTargets="InitializeSourceRootMappedPaths"
|
||||
Condition="'$(UseWPF)' == 'true'"
|
||||
>
|
||||
<!-- WPF causes an error with SourceLink because its build targets create a temporary project without a PackageReference to SourceLink, see https://github.com/dotnet/sourcelink/issues/91,
|
||||
causing the @SourceRoot property to be unexpectedly empty for the MapSourceRoot task
|
||||
|
||||
For context, see https://github.com/dotnet/roslyn/blob/main/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets
|
||||
and https://github.com/dotnet/roslyn/blob/main/src/Compilers/Core/MSBuildTask/MapSourceRoots.cs
|
||||
|
||||
This workaround sets the SourceRoot manually to some deterministic value to keep the promise given by having DeterministicSourcePaths set to true -->
|
||||
<Message Text="using deterministic source path workaround for WPF project instead of SourceLink" />
|
||||
<ItemGroup>
|
||||
<!-- There needs to be at least one SourceRoot defined, its value does not seem to matter as long as it ends with a directory separator -->
|
||||
<SourceRoot Include="\" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user