-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
24 lines (23 loc) · 1.61 KB
/
Copy pathDirectory.Build.targets
File metadata and controls
24 lines (23 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Project>
<!--
ProjectReference does not flow NuGet analyzers. Any in-repo project that
references AuroraScript.csproj gets the hosting generator the same way a
PackageReference to AuroraScript.JIT does. Set DisableAuroraHostingGenerators
to true to opt out. Tests that compile against generator types keep their
own ProjectReference and are skipped here.
-->
<ItemGroup Condition="'$(DisableAuroraHostingGenerators)' != 'true' AND '$(MSBuildProjectName)' != 'AuroraScript' AND '$(MSBuildProjectName)' != 'AuroraScript.Hosting.Generators'">
<_AuroraScriptProjectReference Include="@(ProjectReference->WithMetadataValue('Filename', 'AuroraScript'))" />
<_AuroraHostingGeneratorProjectReference Include="@(ProjectReference->WithMetadataValue('Filename', 'AuroraScript.Hosting.Generators'))" />
</ItemGroup>
<ItemGroup Condition="'@(_AuroraScriptProjectReference)' != '' AND '@(_AuroraHostingGeneratorProjectReference)' == ''">
<ProjectReference Include="$(MSBuildThisFileDirectory)language-tools\AuroraScript.Hosting.Generators\AuroraScript.Hosting.Generators.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<PrivateAssets>all</PrivateAssets>
<!-- The analyzer targets netstandard2.0, so publish settings from a self-contained
single-file host build must not flow into it. -->
<UndefineProperties>PublishTrimmed;TrimMode;PublishSingleFile;SelfContained;PublishSelfContained;RuntimeIdentifier;PublishDir;EnableCompressionInSingleFile</UndefineProperties>
</ProjectReference>
</ItemGroup>
</Project>