This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09a97af
commit f0feb4b
Showing
24 changed files
with
1,194 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/Microsoft.Net.Compilers.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>Microsoft.Net.Compilers</id> | ||
<version>2.9.0</version> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>true</requireLicenseAcceptance> | ||
<developmentDependency>true</developmentDependency> | ||
<licenseUrl>http://go.microsoft.com/fwlink/?LinkId=529443</licenseUrl> | ||
<projectUrl>https://github.com/dotnet/roslyn</projectUrl> | ||
<description>.NET Compilers package. | ||
Referencing this package will cause the project to be built using the specific version of the C# and Visual Basic compilers contained in the package, as opposed to any system installed version. | ||
|
||
This package can be used to compile code targeting any platform, but can only be run using the desktop .NET 4.6+ Full Framework. | ||
|
||
More details at https://aka.ms/roslyn-packages | ||
|
||
This package was built from the source at https://github.com/dotnet/roslyn/commit/958f2354c4d83dbb0e7723d0a8079a0dfbc33f25.</description> | ||
<summary>.NET Compilers package.</summary> | ||
<releaseNotes></releaseNotes> | ||
<language>en-US</language> | ||
<tags>Roslyn CodeAnalysis Compiler CSharp VB VisualBasic Parser Scanner Lexer Emit CodeGeneration Metadata IL Compilation Scripting Syntax Semantics</tags> | ||
<repository type="git" url="https://github.com/dotnet/roslyn" commit="958f2354c4d83dbb0e7723d0a8079a0dfbc33f25" /> | ||
</metadata> | ||
</package> |
44 changes: 44 additions & 0 deletions
44
Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/build/Microsoft.Net.Compilers.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. --> | ||
<Project ToolsVersion="15.0" DefaultTargets="Build" InitialTargets="ValidateMSBuildToolsVersion" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- The UsingTask, UseSharedCompilation, and ToolPath/Exe variables all interact to | ||
choose which compiler path to use and whether or not to use the compiler server. | ||
If UsingTask and UseSharedCompilation are set then the compiler server next to the | ||
task will be used (i.e., the one in this package). | ||
If UseSharedCompilation is false or ToolPath/Exe are set the compiler server will | ||
not be used and the compiler exe at the ToolPath, if set, will be executed, otherwise | ||
the executable in the MSBuild install path will be executed. --> | ||
|
||
<Target Name="ValidateMSBuildToolsVersion" Condition="'$(BuildingProject)' == 'true'"> | ||
<Error Text="Microsoft.Net.Compilers is only supported on MSBuild v15.0 and above" | ||
Condition="'$(MSBuildToolsVersion)' == '2.0' OR | ||
'$(MSBuildToolsVersion)' == '3.5' OR | ||
'$(MSBuildToolsVersion)' == '4.0' OR | ||
'$(MSBuildToolsVersion)' == '12.0' OR | ||
'$(MSBuildToolsVersion)' == '14.0'" /> | ||
</Target> | ||
|
||
<!-- Always use the local build task, even if we just shell out to an exe in case there are | ||
new properties in the local build task. --> | ||
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Csc" | ||
AssemblyFile="$(MSBuildThisFileDirectory)..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll" /> | ||
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.Vbc" | ||
AssemblyFile="$(MSBuildThisFileDirectory)..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll" /> | ||
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.CopyRefAssembly" | ||
AssemblyFile="$(MSBuildThisFileDirectory)..\tools\Microsoft.Build.Tasks.CodeAnalysis.dll" /> | ||
<PropertyGroup> | ||
<!-- By default don't use the compiler server in Visual Studio. --> | ||
<UseSharedCompilation Condition="'$(UseSharedCompilation)' == ''">false</UseSharedCompilation> | ||
<CSharpCoreTargetsPath>$(MSBuildThisFileDirectory)..\tools\Microsoft.CSharp.Core.targets</CSharpCoreTargetsPath> | ||
<VisualBasicCoreTargetsPath>$(MSBuildThisFileDirectory)..\tools\Microsoft.VisualBasic.Core.targets</VisualBasicCoreTargetsPath> | ||
</PropertyGroup> | ||
|
||
<!-- If we're not using the compiler server, set ToolPath/Exe to direct to | ||
the exes in this package --> | ||
<PropertyGroup Condition="'$(UseSharedCompilation)' != 'true'"> | ||
<CscToolPath>$(MSBuildThisFileDirectory)..\tools</CscToolPath> | ||
<CscToolExe>csc.exe</CscToolExe> | ||
<VbcToolPath>$(MSBuildThisFileDirectory)..\tools</VbcToolPath> | ||
<VbcToolExe>vbc.exe</VbcToolExe> | ||
</PropertyGroup> | ||
</Project> |
Binary file added
BIN
+119 KB
....Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.Build.Tasks.CodeAnalysis.dll
Binary file not shown.
135 changes: 135 additions & 0 deletions
135
Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.CSharp.Core.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. --> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="Microsoft.Managed.Core.targets"/> | ||
|
||
<Target Name="CoreCompile" | ||
Inputs="$(MSBuildAllProjects); | ||
@(Compile); | ||
@(_CoreCompileResourceInputs); | ||
$(ApplicationIcon); | ||
$(AssemblyOriginatorKeyFile); | ||
@(ReferencePathWithRefAssemblies); | ||
@(CompiledLicenseFile); | ||
@(LinkResource); | ||
@(EmbeddedDocumentation); | ||
$(Win32Resource); | ||
$(Win32Manifest); | ||
@(CustomAdditionalCompileInputs); | ||
$(ResolvedCodeAnalysisRuleSet); | ||
@(AdditionalFiles); | ||
@(EmbeddedFiles)" | ||
Outputs="@(DocFileItem); | ||
@(IntermediateAssembly); | ||
@(IntermediateRefAssembly); | ||
@(_DebugSymbolsIntermediatePath); | ||
$(NonExistentFile); | ||
@(CustomAdditionalCompileOutputs)" | ||
Returns="@(CscCommandLineArgs)" | ||
DependsOnTargets="$(CoreCompileDependsOn);_BeforeVBCSCoreCompile"> | ||
<!-- These two compiler warnings are raised when a reference is bound to a different version | ||
than specified in the assembly reference version number. MSBuild raises the same warning in this case, | ||
so the compiler warning would be redundant. --> | ||
<PropertyGroup Condition="('$(TargetFrameworkVersion)' != 'v1.0') and ('$(TargetFrameworkVersion)' != 'v1.1')"> | ||
<NoWarn>$(NoWarn);1701;1702</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<!-- To match historical behavior, when inside VS11+ disable the warning from csc.exe indicating that no sources were passed in--> | ||
<NoWarn Condition="'$(BuildingInsideVisualStudio)' == 'true' AND '$(VisualStudioVersion)' != '' AND '$(VisualStudioVersion)' > '10.0'">$(NoWarn);2008</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<!-- If the user has specified AppConfigForCompiler, we'll use it. If they have not, but they set UseAppConfigForCompiler, | ||
then we'll use AppConfig --> | ||
<AppConfigForCompiler Condition="'$(AppConfigForCompiler)' == '' AND '$(UseAppConfigForCompiler)' == 'true'">$(AppConfig)</AppConfigForCompiler> | ||
|
||
<!-- If we are targeting winmdobj we want to specifically the pdbFile property since we do not want it to collide with the output of winmdexp--> | ||
<PdbFile Condition="'$(PdbFile)' == '' AND '$(OutputType)' == 'winmdobj' AND '$(_DebugSymbolsProduced)' == 'true'">$(IntermediateOutputPath)$(TargetName).compile.pdb</PdbFile> | ||
</PropertyGroup> | ||
|
||
<!-- Condition is to filter out the _CoreCompileResourceInputs so that it doesn't pass in culture resources to the compiler --> | ||
<Csc Condition="'%(_CoreCompileResourceInputs.WithCulture)' != 'true'" | ||
AdditionalLibPaths="$(AdditionalLibPaths)" | ||
AddModules="@(AddModules)" | ||
AdditionalFiles="@(AdditionalFiles)" | ||
AllowUnsafeBlocks="$(AllowUnsafeBlocks)" | ||
Analyzers="@(Analyzer)" | ||
ApplicationConfiguration="$(AppConfigForCompiler)" | ||
BaseAddress="$(BaseAddress)" | ||
CheckForOverflowUnderflow="$(CheckForOverflowUnderflow)" | ||
ChecksumAlgorithm="$(ChecksumAlgorithm)" | ||
CodeAnalysisRuleSet="$(ResolvedCodeAnalysisRuleSet)" | ||
CodePage="$(CodePage)" | ||
DebugType="$(DebugType)" | ||
DefineConstants="$(DefineConstants)" | ||
DelaySign="$(DelaySign)" | ||
DisabledWarnings="$(NoWarn)" | ||
DocumentationFile="@(DocFileItem)" | ||
EmbedAllSources="$(EmbedAllSources)" | ||
EmbeddedFiles="@(EmbeddedFiles)" | ||
EmitDebugInformation="$(DebugSymbols)" | ||
EnvironmentVariables="$(CscEnvironment)" | ||
ErrorEndLocation="$(ErrorEndLocation)" | ||
ErrorLog="$(ErrorLog)" | ||
ErrorReport="$(ErrorReport)" | ||
Features="$(Features)" | ||
FileAlignment="$(FileAlignment)" | ||
GenerateFullPaths="$(GenerateFullPaths)" | ||
HighEntropyVA="$(HighEntropyVA)" | ||
Instrument="$(Instrument)" | ||
KeyContainer="$(KeyContainerName)" | ||
KeyFile="$(KeyOriginatorFile)" | ||
LangVersion="$(LangVersion)" | ||
LinkResources="@(LinkResource)" | ||
MainEntryPoint="$(StartupObject)" | ||
ModuleAssemblyName="$(ModuleAssemblyName)" | ||
NoConfig="true" | ||
NoLogo="$(NoLogo)" | ||
NoStandardLib="$(NoCompilerStandardLib)" | ||
NoWin32Manifest="$(NoWin32Manifest)" | ||
Optimize="$(Optimize)" | ||
Deterministic="$(Deterministic)" | ||
PublicSign="$(PublicSign)" | ||
OutputAssembly="@(IntermediateAssembly)" | ||
OutputRefAssembly="@(IntermediateRefAssembly)" | ||
PdbFile="$(PdbFile)" | ||
Platform="$(PlatformTarget)" | ||
Prefer32Bit="$(Prefer32Bit)" | ||
PreferredUILang="$(PreferredUILang)" | ||
ProvideCommandLineArgs="$(ProvideCommandLineArgs)" | ||
References="@(ReferencePathWithRefAssemblies)" | ||
ReportAnalyzer="$(ReportAnalyzer)" | ||
Resources="@(_CoreCompileResourceInputs);@(CompiledLicenseFile)" | ||
ResponseFiles="$(CompilerResponseFile)" | ||
RuntimeMetadataVersion="$(RuntimeMetadataVersion)" | ||
SharedCompilationId="$(SharedCompilationId)" | ||
SkipCompilerExecution="$(SkipCompilerExecution)" | ||
Sources="@(Compile)" | ||
SubsystemVersion="$(SubsystemVersion)" | ||
TargetType="$(OutputType)" | ||
ToolExe="$(CscToolExe)" | ||
ToolPath="$(CscToolPath)" | ||
TreatWarningsAsErrors="$(TreatWarningsAsErrors)" | ||
UseHostCompilerIfAvailable="$(UseHostCompilerIfAvailable)" | ||
UseSharedCompilation="$(UseSharedCompilation)" | ||
Utf8Output="$(Utf8Output)" | ||
VsSessionGuid="$(VsSessionGuid)" | ||
WarningLevel="$(WarningLevel)" | ||
WarningsAsErrors="$(WarningsAsErrors)" | ||
WarningsNotAsErrors="$(WarningsNotAsErrors)" | ||
Win32Icon="$(ApplicationIcon)" | ||
Win32Manifest="$(Win32Manifest)" | ||
Win32Resource="$(Win32Resource)" | ||
PathMap="$(PathMap)" | ||
SourceLink="$(SourceLink)"> | ||
<Output TaskParameter="CommandLineArgs" ItemName="CscCommandLineArgs" /> | ||
</Csc> | ||
|
||
<ItemGroup> | ||
<_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" /> | ||
</ItemGroup> | ||
|
||
<CallTarget Targets="$(TargetsTriggeredByCompilation)" Condition="'$(TargetsTriggeredByCompilation)' != ''" /> | ||
</Target> | ||
</Project> |
Binary file added
BIN
+27.9 KB
...Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.CodeAnalysis.CSharp.Scripting.dll
Binary file not shown.
Binary file added
BIN
+4.67 MB
...osoft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.CodeAnalysis.CSharp.dll
Binary file not shown.
Binary file added
BIN
+125 KB
...ft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.CodeAnalysis.Scripting.dll
Binary file not shown.
Binary file added
BIN
+5.17 MB
....Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.CodeAnalysis.VisualBasic.dll
Binary file not shown.
Binary file added
BIN
+2.6 MB
Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.CodeAnalysis.dll
Binary file not shown.
155 changes: 155 additions & 0 deletions
155
Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.9.0/tools/Microsoft.Managed.Core.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. --> | ||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!-- | ||
Common targets for managed compilers. | ||
--> | ||
<UsingTask TaskName="Microsoft.CodeAnalysis.BuildTasks.MapSourceRoots" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.Tasks.CodeAnalysis.dll" /> | ||
|
||
<Target Name="ShimReferencePathsWhenCommonTargetsDoesNotUnderstandReferenceAssemblies" | ||
BeforeTargets="CoreCompile" | ||
Condition="'@(ReferencePathWithRefAssemblies)' == ''"> | ||
<!-- | ||
FindReferenceAssembliesForReferences target in Common targets populate this item | ||
since dev15.3. The compiler targets may be used (via NuGet package) on earlier MSBuilds. | ||
If the ReferencePathWithRefAssemblies item is not populated, just use ReferencePaths | ||
(implementation assemblies) as they are. | ||
Since XAML inner build runs CoreCompile directly (instead of Compile target), | ||
it also doesn't invoke FindReferenceAssembliesForReferences listed in CompileDependsOn. | ||
In that case we also populate ReferencePathWithRefAssemblies with implementation assemblies. | ||
--> | ||
<ItemGroup> | ||
<ReferencePathWithRefAssemblies Include="@(ReferencePath)" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<Target Name="_BeforeVBCSCoreCompile" | ||
DependsOnTargets="ShimReferencePathsWhenCommonTargetsDoesNotUnderstandReferenceAssemblies"> | ||
|
||
<ItemGroup Condition="'$(TargetingClr2Framework)' == 'true'"> | ||
<ReferencePathWithRefAssemblies> | ||
<EmbedInteropTypes /> | ||
</ReferencePathWithRefAssemblies> | ||
</ItemGroup> | ||
|
||
<!-- Prefer32Bit was introduced in .NET 4.5. Set it to false if we are targeting 4.0 --> | ||
<PropertyGroup Condition="('$(TargetFrameworkVersion)' == 'v4.0')"> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
|
||
<!-- TODO: Remove this ItemGroup once it has been moved to "_GenerateCompileInputs" target in Microsoft.Common.CurrentVersion.targets. | ||
https://github.com/dotnet/roslyn/issues/12223 --> | ||
<ItemGroup Condition="('$(AdditionalFileItemNames)' != '')"> | ||
<AdditionalFileItems Include="$(AdditionalFileItemNames)" /> | ||
<AdditionalFiles Include="@(%(AdditionalFileItems.Identity))" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'$(UseSharedCompilation)' == ''"> | ||
<UseSharedCompilation>true</UseSharedCompilation> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<!-- | ||
======================== | ||
DeterministicSourcePaths | ||
======================== | ||
Unless specified otherwise enable deterministic source root (PathMap) when building deterministically on CI server, but not for local builds. | ||
In order for the debugger to find source files when debugging a locally built binary the PDB must contain original, unmapped local paths. | ||
--> | ||
<PropertyGroup> | ||
<DeterministicSourcePaths Condition="'$(DeterministicSourcePaths)' == '' and '$(Deterministic)' == 'true' and '$(ContinuousIntegrationBuild)' == 'true'">true</DeterministicSourcePaths> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
========== | ||
SourceRoot | ||
========== | ||
All source files of the project are expected to be located under one of the directories specified by SourceRoot item group. | ||
This target collects all SourceRoots from various sources. | ||
This target calculates final local path for each SourceRoot and sets SourceRoot.MappedPath metadata accordingly. | ||
The final path is a path with deterministic prefix when DeterministicSourcePaths is true, and the original path otherwise. | ||
In addition, the target validates and deduplicates the SourceRoot items. | ||
InitializeSourceControlInformation is an msbuild target that ensures the SourceRoot items are populated from source control. | ||
The target is available only if SourceControlInformationFeatureSupported is true. | ||
A consumer of SourceRoot.MappedPath metadata, such as Source Link generator, shall depend on this target. | ||
--> | ||
|
||
<Target Name="InitializeSourceRootMappedPaths" | ||
DependsOnTargets="_InitializeSourceRootMappedPathsFromSourceControl"> | ||
|
||
<ItemGroup Condition="'@(_MappedSourceRoot)' != ''"> | ||
<_MappedSourceRoot Remove="@(_MappedSourceRoot)" /> | ||
</ItemGroup> | ||
|
||
<Microsoft.CodeAnalysis.BuildTasks.MapSourceRoots SourceRoots="@(SourceRoot)" Deterministic="$(DeterministicSourcePaths)"> | ||
<Output TaskParameter="MappedSourceRoots" ItemName="_MappedSourceRoot" /> | ||
</Microsoft.CodeAnalysis.BuildTasks.MapSourceRoots> | ||
|
||
<ItemGroup> | ||
<SourceRoot Remove="@(SourceRoot)" /> | ||
<SourceRoot Include="@(_MappedSourceRoot)" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<!-- | ||
Declare that target InitializeSourceRootMappedPaths that populates MappedPaths metadata on SourceRoot items is available. | ||
--> | ||
<PropertyGroup> | ||
<SourceRootMappedPathsFeatureSupported>true</SourceRootMappedPathsFeatureSupported> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
If InitializeSourceControlInformation target isn't supported, we just continue without invoking that synchronization target. | ||
We'll proceed with SourceRoot (and other source control properties) provided by the user (or blank). | ||
--> | ||
<Target Name="_InitializeSourceRootMappedPathsFromSourceControl" | ||
DependsOnTargets="InitializeSourceControlInformation" | ||
Condition="'$(SourceControlInformationFeatureSupported)' == 'true'" /> | ||
|
||
<!-- | ||
======= | ||
PathMap | ||
======= | ||
If DeterministicSourcePaths is true sets PathMap based on SourceRoot.MappedPaths. | ||
This target requires SourceRoot to be initialized in order to calculate the PathMap. | ||
If SourceRoot doesn't contain any top-level roots an error is reported. | ||
--> | ||
|
||
<Target Name="_SetPathMapFromSourceRoots" | ||
DependsOnTargets="InitializeSourceRootMappedPaths" | ||
BeforeTargets="CoreCompile" | ||
Condition="'$(DeterministicSourcePaths)' == 'true'"> | ||
|
||
<ItemGroup> | ||
<_TopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Condition="'@(_TopLevelSourceRoot)' != ''"> | ||
<!-- TODO: Report error/warning if /pathmap doesn't cover all emitted source paths: https://github.com/dotnet/roslyn/issues/23969 --> | ||
|
||
<!-- TODO: PathMap should accept and ignore empty mapping: https://github.com/dotnet/roslyn/issues/23523 --> | ||
<PathMap Condition="'$(PathMap)' != ''">,$(PathMap)</PathMap> | ||
|
||
<!-- | ||
Prepend the SourceRoot.MappedPath values to PathMap, if it already has a value. | ||
For each emitted source path the compiler applies the first mapping that matches the path. | ||
PathMap values set previously will thus only be applied if the mapping provided by | ||
SourceRoot.MappedPath doesn't match. Since SourceRoot.MappedPath is also used by SourceLink | ||
preferring it over manually set PathMap ensures that PathMap is consistent with SourceLink. | ||
TODO: quote the paths to avoid misinterpreting ',' and '=' in them as separators, | ||
but quoting doesn't currently work (see https://github.com/dotnet/roslyn/issues/22835). | ||
--> | ||
<PathMap>@(_TopLevelSourceRoot->'%(Identity)=%(MappedPath)', ',')$(PathMap)</PathMap> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
</Project> |
Oops, something went wrong.