1
0
Fork 0
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:
Anirudh Agnihotry 2020-03-15 13:19:09 -07:00 committed by GitHub
parent 1bce90ddc4
commit 570fa1d2ae
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 33 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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'"

View file

@ -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)">

View file

@ -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
-->

View file

@ -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" />

View file

@ -355,7 +355,6 @@
<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Workaround for https://github.com/microsoft/msbuild/issues/4474 -->
<GenerateResourceUsePreserializedResources>false</GenerateResourceUsePreserializedResources>

View file

@ -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" />

View file

@ -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
-->