|
21 | 21 | </PropertyGroup> |
22 | 22 |
|
23 | 23 | <!-- Workaround for running Coverlet with Determenistic builds --> |
24 | | - <!-- https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/DeterministicBuild.md --> |
| 24 | + <PropertyGroup> |
| 25 | + <TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath> |
| 26 | + </PropertyGroup> |
| 27 | + <ItemGroup> |
| 28 | + <EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/> |
| 29 | + </ItemGroup> |
| 30 | + <ItemGroup> |
| 31 | + <SourceRoot Include="$(NuGetPackageRoot)" /> |
| 32 | + </ItemGroup> |
| 33 | + |
25 | 34 | <Target Name="CoverletGetPathMap" |
26 | | - DependsOnTargets="InitializeSourceRootMappedPaths" |
27 | | - Returns="@(_LocalTopLevelSourceRoot)" |
28 | | - Condition="'$(DeterministicSourcePaths)' == 'true'"> |
| 35 | + DependsOnTargets="InitializeSourceRootMappedPaths" |
| 36 | + Returns="@(_LocalTopLevelSourceRoot)" |
| 37 | + Condition="'$(DeterministicSourcePaths)' == 'true'"> |
29 | 38 | <ItemGroup> |
30 | 39 | <_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/> |
31 | 40 | </ItemGroup> |
32 | 41 | </Target> |
33 | | - |
| 42 | + |
34 | 43 | <ItemDefinitionGroup> |
35 | 44 | <InternalsVisibleTo> |
36 | 45 | <Visible>false</Visible> |
|
62 | 71 | <!-- Empty target so that `dotnet test` will work on the solution --> |
63 | 72 | <!-- https://github.com/Microsoft/vstest/issues/411 --> |
64 | 73 | <Target Name="VSTest" Condition="'$(IsTestProject)' == 'true'"/> |
65 | | - |
| 74 | + |
66 | 75 | <ItemGroup> |
67 | 76 | <!--Shared config files that have to exist at root level.--> |
68 | 77 | <ConfigFilesToCopy Include="..\..\shared-infrastructure\.editorconfig;..\..\shared-infrastructure\.gitattributes" /> |
|
74 | 83 | SkipUnchangedFiles = "true" |
75 | 84 | DestinationFolder="..\..\" /> |
76 | 85 | </Target> |
77 | | - |
| 86 | + |
78 | 87 | <!-- Allows regenerating T4-generated files at build time using MsBuild --> |
79 | 88 | <!-- Enable on Windows OS to build all T4 templates. TODO: XPlat |
80 | 89 | <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TextTemplating\Microsoft.TextTemplating.targets" /> |
81 | 90 | <PropertyGroup> |
82 | 91 | <TransformOnBuild>true</TransformOnBuild> |
83 | 92 | </PropertyGroup> |
84 | 93 | --> |
85 | | - |
| 94 | + |
86 | 95 | </Project> |
0 commit comments