mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-10 18:11:04 +09:00
Fixing the sourcelink failure for embeded files (#33521)
* fixing sourcelink * enable sourcelink on official build * addressing feedback * removing extra space * reverting eng common change * adding comment * moving comment to correct place * not embedding files for test assemblies
This commit is contained in:
parent
1bce90ddc4
commit
570fa1d2ae
9 changed files with 13 additions and 33 deletions
|
@ -20,4 +20,15 @@
|
|||
<NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<GeneratedAssemblyInfoFile>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(MSBuildProjectName).AssemblyInfo$(DefaultLanguageSourceExtension)'))</GeneratedAssemblyInfoFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
All source inputs to the compiler should be generated before BeforeCompile target. Sdk is not
|
||||
honoring this for GenerateAssemblyInfo target. https://github.com/dotnet/sdk/issues/10614
|
||||
-->
|
||||
<ItemGroup Condition="'$(IsTestProject)' != 'true'">
|
||||
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
Override this target to disable calling the source control commands on some
|
||||
platforms that don't support the targets like RHEL 6.
|
||||
-->
|
||||
<Target Name="InitializeSourceControlInformationFromSourceControlManager">
|
||||
<PropertyGroup>
|
||||
<SourceRevisionId>unknown</SourceRevisionId>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
</Project>
|
|
@ -29,7 +29,7 @@ stages:
|
|||
# Symbol validation is not ready yet. https://github.com/dotnet/arcade/issues/2871
|
||||
enableSymbolValidation: false
|
||||
# SourceLink validation doesn't work in dev builds: tries to pull from GitHub. https://github.com/dotnet/arcade/issues/3604
|
||||
enableSourceLinkValidation: false
|
||||
enableSourceLinkValidation: true
|
||||
# Allow symbol publish to emit expected warnings without failing the build. Include single
|
||||
# quotes inside the string so that it passes through to MSBuild without script interference.
|
||||
symbolPublishingAdditionalParameters: "'-warnAsError:$false'"
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
<!-- Note: ReferenceAssemblies.targets still uses @(AssemblyInfoLines) as well. So if you remove this, those need to migrate too. -->
|
||||
<Target Name="_WriteNonStringAssemblyInfoAttributes"
|
||||
AfterTargets="CoreGenerateAssemblyInfo"
|
||||
BeforeTargets="BeforeCompile;CoreCompile"
|
||||
Inputs="$(MSBuildProjectFile)"
|
||||
Outputs="$(AssemblyInfoFile)">
|
||||
|
||||
|
|
|
@ -104,12 +104,6 @@
|
|||
<StrongNameKeyId>SilverlightPlatform</StrongNameKeyId>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- SourceLink -->
|
||||
<PropertyGroup>
|
||||
<!-- This is needed to embed build-time generated sources such as eventing and resource files to sourcelink PDBs. -->
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
Helper Paths
|
||||
-->
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
<Import Project="..\..\Directory.Build.targets" />
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)DisableSourceControlManagement.targets" Condition="'$(EnableSourceLink)' == 'false'" />
|
||||
|
||||
<!-- Provide default targets which can be hooked onto or overridden as necessary -->
|
||||
<Target Name="Pack" />
|
||||
|
||||
|
|
|
@ -355,7 +355,6 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
|
||||
<!-- Workaround for https://github.com/microsoft/msbuild/issues/4474 -->
|
||||
<GenerateResourceUsePreserializedResources>false</GenerateResourceUsePreserializedResources>
|
||||
|
|
|
@ -146,8 +146,6 @@
|
|||
<!-- Import Packaging targets -->
|
||||
<Import Project="$(RepositoryEngineeringDir)packaging.targets" />
|
||||
|
||||
<Import Project="$(RepositoryEngineeringDir)DisableSourceControlManagement.targets" Condition="'$(EnableSourceLink)' == 'false'" />
|
||||
|
||||
<!-- Define this now until we can clean-up targets that depend on it in the packaging targets -->
|
||||
<Target Name="CreateVersionFileDuringBuild" />
|
||||
|
||||
|
|
|
@ -108,12 +108,6 @@
|
|||
<StrongNameKeyId>SilverlightPlatform</StrongNameKeyId>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- SourceLink -->
|
||||
<PropertyGroup>
|
||||
<!-- This is needed to embed build-time generated sources such as eventing and resource files to sourcelink PDBs. -->
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
Helper Paths
|
||||
-->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue