Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
179 changes: 168 additions & 11 deletions nuget/Microsoft.Windows.CsWinRT.CsWinRTGen.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<PropertyGroup>

<CsWinRTGenTasksAssembly>$(SolutionDir)RunCsWinRTGeneratorTask\bin\$(Configuration)\netstandard2.0\RunCsWinRTGeneratorTask.dll</CsWinRTGenTasksAssembly>
<CsWinRTToolsDirectory>$(SolutionDir)WinRT.Interop.Generator\bin\$(Configuration)\net10.0\</CsWinRTToolsDirectory>
<CsWinRTGenToolsDirectory>$(SolutionDir)WinRT.Interop.Generator\bin\$(Configuration)\net10.0\</CsWinRTGenToolsDirectory>
<CsWinRTImplToolsDirectory>$(SolutionDir)WinRT.Impl.Generator\bin\$(Configuration)\net10.0\</CsWinRTImplToolsDirectory>
<CsWinRTMergedProjectionToolsDirectory>$(SolutionDir)WinRT.Projection.Generator\bin\$(Configuration)\net10.0\</CsWinRTMergedProjectionToolsDirectory>
<CsWinRTToolsArchitecture>AnyCPU</CsWinRTToolsArchitecture>
<_TargetPlatformVersionUsesCsWinRT3>true</_TargetPlatformVersionUsesCsWinRT3>

Expand All @@ -17,7 +19,8 @@ Copyright (C) Microsoft Corporation. All rights reserved.
So the switch for it is currently opt-in. It can be changed to opt-out in the future.
We only enable this automatically if the project is explicitly targeting CsWinRT 3.0.
-->
<CsWinRTGenerateInteropAssembly Condition="'$(CsWinRTGenerateInteropAssembly)' == '' and '$(_TargetPlatformVersionUsesCsWinRT3)' == 'true'">true</CsWinRTGenerateInteropAssembly>
<CsWinRTGenerateInteropAssembly Condition="'$(CsWinRTGenerateInteropAssembly)' == '' and '$(_TargetPlatformVersionUsesCsWinRT3)' == 'true' and ('$(OutputType)' == 'Exe' or '$(OutputType)' == 'Winexe')">true</CsWinRTGenerateInteropAssembly>
<CsWinRTGenerateInteropAssembly Condition="'$(CsWinRTGenerateInteropAssembly)' == '' and '$(_TargetPlatformVersionUsesCsWinRT3)' == 'true' and '$(OutputType)' == 'Library' and '$(PublishAOT)' == 'true'">true</CsWinRTGenerateInteropAssembly>
<CsWinRTGenerateInteropAssembly Condition="'$(CsWinRTGenerateInteropAssembly)' == ''">false</CsWinRTGenerateInteropAssembly>

<!--
Expand Down Expand Up @@ -47,17 +50,30 @@ Copyright (C) Microsoft Corporation. All rights reserved.
-->
<_RunCsWinRTGeneratorPropertyInputsCachePath Condition="'$(_RunCsWinRTGeneratorPropertyInputsCachePath)' == ''">$(IntermediateOutputPath)$(MSBuildProjectName).cswinrtgen.cache</_RunCsWinRTGeneratorPropertyInputsCachePath>
<_RunCsWinRTGeneratorPropertyInputsCachePath>$([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '$(_RunCsWinRTGeneratorPropertyInputsCachePath)'))</_RunCsWinRTGeneratorPropertyInputsCachePath>

<!--
Default property values for `cswinrtimplgen`.
-->
<CsWinRTGeneratorForwarderAssemblyDirectory Condition="'$(CsWinRTGeneratorForwarderAssemblyDirectory)' == ''">$(IntermediateOutputPath)\forwarder\</CsWinRTGeneratorForwarderAssemblyDirectory>
<_CsWinRTGeneratorForwarderAssemblyPath>$(CsWinRTGeneratorForwarderAssemblyDirectory)$(AssemblyName).dll</_CsWinRTGeneratorForwarderAssemblyPath>

<!--
Default property values for `cswinrtprojectiongen`.
-->
<_CsWinRTGeneratorMergedProjectionAssemblyPath>$(IntermediateOutputPath)WinRT.Projection.dll</_CsWinRTGeneratorMergedProjectionAssemblyPath>
<_CsWinRTGeneratorMergedProjectionOutputAssemblyPath>WinRT.Projection.dll</_CsWinRTGeneratorMergedProjectionOutputAssemblyPath>

<DefineConstants Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'">$(DefineConstants);CSWINRT_REFERENCE_PROJECTION</DefineConstants>
</PropertyGroup>

<!--
============================================================
_ComputeRunCsWinRTGeneratorCache
_ResolveCsWinRToolsDirectory

Computes the cache file for '_RunCsWinRTGenerator' with the
hash of all input properties, to support incremental builds.
Resolves and initalizes the location of the CsWinRT generator tools.
============================================================
-->
<Target Name="_ComputeRunCsWinRTGeneratorCache" DependsOnTargets="ResolveAssemblyReferences">
<Target Name="_ResolveCsWinRToolsDirectory" DependsOnTargets="ResolveAssemblyReferences">

<!--
If the user hasn't specified the 'CsWinRTToolsDirectory' property, we need to resolve the correct
Expand All @@ -81,9 +97,24 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<_CsWinRTOrTargetingPackRootDirectory>$([System.IO.Path]::GetDirectoryName('$(_CsWinRTOrTargetingPackLibDirectory)'))</_CsWinRTOrTargetingPackRootDirectory>
<_CsWinRTOrTargetingPackToolsDirectory>$([System.IO.Path]::Combine('$(_CsWinRTOrTargetingPackRootDirectory)', 'tools'))</_CsWinRTOrTargetingPackToolsDirectory>

<CsWinRTEffectiveToolsDirectory>$(CsWinRTToolsDirectory)</CsWinRTEffectiveToolsDirectory>
<CsWinRTEffectiveToolsDirectory Condition="'$(CsWinRTEffectiveToolsDirectory)' == ''">$(_CsWinRTOrTargetingPackToolsDirectory)</CsWinRTEffectiveToolsDirectory>
<CsWinRTGenEffectiveToolsDirectory>$(CsWinRTGenToolsDirectory)</CsWinRTGenEffectiveToolsDirectory>
<CsWinRTGenEffectiveToolsDirectory Condition="'$(CsWinRTGenEffectiveToolsDirectory)' == ''">$(_CsWinRTOrTargetingPackToolsDirectory)</CsWinRTGenEffectiveToolsDirectory>
<CsWinRTImplEffectiveToolsDirectory>$(CsWinRTImplToolsDirectory)</CsWinRTImplEffectiveToolsDirectory>
<CsWinRTImplEffectiveToolsDirectory Condition="'$(CsWinRTImplEffectiveToolsDirectory)' == ''">$(_CsWinRTOrTargetingPackToolsDirectory)</CsWinRTImplEffectiveToolsDirectory>
<CsWinRTMergedProjectionEffectiveToolsDirectory>$(CsWinRTMergedProjectionToolsDirectory)</CsWinRTMergedProjectionEffectiveToolsDirectory>
<CsWinRTMergedProjectionEffectiveToolsDirectory Condition="'$(CsWinRTMergedProjectionEffectiveToolsDirectory)' == ''">$(_CsWinRTOrTargetingPackToolsDirectory)</CsWinRTMergedProjectionEffectiveToolsDirectory>
</PropertyGroup>
</Target>

<!--
============================================================
_ComputeRunCsWinRTGeneratorCache

Computes the cache file for '_RunCsWinRTGenerator' with the
hash of all input properties, to support incremental builds.
============================================================
-->
<Target Name="_ComputeRunCsWinRTGeneratorCache" DependsOnTargets="ResolveAssemblyReferences;_ResolveCsWinRToolsDirectory">

<ItemGroup>
<_RunCsWinRTGeneratorInputsCacheToHash Include="$(CsWinRTEffectiveToolsDirectory)" />
Expand Down Expand Up @@ -125,17 +156,17 @@ Copyright (C) Microsoft Corporation. All rights reserved.
Name="_RunCsWinRTGenerator"
DependsOnTargets="CoreCompile;$(GetTargetPathDependsOn);$(GetTargetPathWithTargetPlatformMonikerDependsOn);_ComputeRunCsWinRTGeneratorCache"
BeforeTargets="GetTargetPath;GetTargetPathWithTargetPlatformMoniker;GenerateBuildDependencyFile;GeneratePublishDependencyFile;GetCopyToOutputDirectoryItems;GetCopyToPublishDirectoryItems"
Inputs="@(ReferencePath);@(IntermediateAssembly);$(_RunCsWinRTGeneratorPropertyInputsCachePath)"
Inputs="@(ReferencePathWithRefAssemblies);@(IntermediateAssembly);$(_RunCsWinRTGeneratorPropertyInputsCachePath)"
Outputs="$(_CsWinRTGeneratorInteropAssemblyPath)"
Condition="'$(CsWinRTGenerateInteropAssembly)' == 'true'">

<!-- Invoke 'cswinrtgen' -->
<RunCsWinRTGenerator
ReferenceAssemblyPaths="@(ReferencePath)"
ReferenceAssemblyPaths="@(ReferencePathWithRefAssemblies)"
OutputAssemblyPath="@(IntermediateAssembly)"
InteropAssemblyDirectory="$(CsWinRTGeneratorInteropAssemblyDirectory)"
DebugReproDirectory="$(CsWinRTGeneratorDebugReproDirectory)"
CsWinRTToolsDirectory="$(CsWinRTEffectiveToolsDirectory)"
CsWinRTToolsDirectory="$(CsWinRTGenEffectiveToolsDirectory)"
CsWinRTToolsArchitecture="$(CsWinRTToolsArchitecture)"
UseWindowsUIXamlProjections="$(CsWinRTUseWindowsUIXamlProjections)"
ValidateWinRTRuntimeAssemblyVersion="$(CsWinRTGeneratorValidateWinRTRuntimeAssemblyVersion)"
Expand Down Expand Up @@ -185,4 +216,130 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<FileWrites Include="@(CsWinRTGeneratorInteropAssemblyPath)"/>
</ItemGroup>
</Target>

<!--
============================================================
_RunCsWinRTForwarderImplGenerator

Runs 'cswinrtimplgen' to produce the forwarders assembly.
============================================================
-->
<UsingTask Condition="'$(CsWinRTGeneratorTasksOverriden)' != 'true'" TaskName="RunCsWinRTForwarderImplGenerator" AssemblyFile="$(CsWinRTGenTasksAssembly)" />
<Target
Name="_RunCsWinRTForwarderImplGenerator"
DependsOnTargets="Compile;_ResolveCsWinRToolsDirectory"
BeforeTargets="GetCopyToOutputDirectoryItems;GetCopyToPublishDirectoryItems"
Inputs="@(ReferencePath);@(IntermediateRefAssembly)"
Outputs="@(IntermediateAssembly);@(IntermediateRefAssembly);$(_CsWinRTGeneratorForwarderAssemblyPath);"
Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'">

<MakeDir Directories="$(CsWinRTGeneratorForwarderAssemblyDirectory)" />

<!-- Invoke 'cswinrtimplgen' -->
<RunCsWinRTForwarderImplGenerator
ReferenceAssemblyPaths="@(ReferencePath)"
OutputAssemblyPath="@(IntermediateRefAssembly)"
GeneratedAssemblyDirectory="$(CsWinRTGeneratorForwarderAssemblyDirectory)"
AssemblyOriginatorKeyFile="$(AssemblyOriginatorKeyFile)"
CsWinRTToolsDirectory="$(CsWinRTImplEffectiveToolsDirectory)"
CsWinRTToolsArchitecture="$(CsWinRTToolsArchitecture)"
TreatWarningsAsErrors="$(CsWinRTGeneratorTreatWarningsAsErrors)"
AdditionalArguments="@(CsWinRTGeneratorAdditionalArgument)"
StandardOutputImportance="$(CsWinRTGeneratorStandardOutputImportance)"
StandardErrorImportance="$(CsWinRTGeneratorStandardErrorImportance)"
LogStandardErrorAsError="$(CsWinRTGeneratorLogStandardErrorAsError)" />

<Copy SourceFiles="$(_CsWinRTGeneratorForwarderAssemblyPath)"
DestinationFiles="@(IntermediateAssembly)" />

<!-- Append to 'FileWrites' so the .dll will be removed on clean -->
<ItemGroup>
<FileWrites Include="$(_CsWinRTGeneratorForwarderAssemblyPath)"/>
</ItemGroup>
</Target>

<Target
Name="CsWinRTGetForwarderTargetPathWithTargetPlatformMoniker"
Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'"
BeforeTargets="GetTargetPath"
DependsOnTargets="GetTargetPathWithTargetPlatformMoniker"
Returns="@(TargetPathWithTargetPlatformMoniker)">
<ItemGroup>
<TargetPathWithTargetPlatformMoniker Update="$(TargetPath)">
<CsWinRTInputs>@(CsWinRTInputs)</CsWinRTInputs>
</TargetPathWithTargetPlatformMoniker>
</ItemGroup>
</Target>

<!--
============================================================
_RunCsWinRTMergedProjectionGenerator

Runs 'cswinrtprojectiongen' to produce the forwarders assembly.
============================================================
-->
<UsingTask Condition="'$(CsWinRTGeneratorTasksOverriden)' != 'true'" TaskName="RunCsWinRTMergedProjectionGenerator" AssemblyFile="$(CsWinRTGenTasksAssembly)" />
<Target
Name="_RunCsWinRTMergedProjectionGenerator"
DependsOnTargets="CoreCompile;$(GetTargetPathDependsOn);$(GetTargetPathWithTargetPlatformMonikerDependsOn);_ResolveCsWinRToolsDirectory"
BeforeTargets="GetTargetPath;GetTargetPathWithTargetPlatformMoniker;GenerateBuildDependencyFile;GeneratePublishDependencyFile;GetCopyToOutputDirectoryItems;GetCopyToPublishDirectoryItems"
Inputs="@(ReferencePathWithRefAssemblies);@(IntermediateAssembly);$(_RunCsWinRTGeneratorPropertyInputsCachePath)"
Outputs="$(_CsWinRTGeneratorMergedProjectionAssemblyPath)"
Condition="'$(CsWinRTGenerateInteropAssembly)' == 'true'">

<ItemGroup>
<_ReferencePathsWithWinMDs Include="@(ReferencePathWithRefAssemblies)" Condition="'%(ReferencePathWithRefAssemblies.CsWinRTInputs)' != ''" />
<_WinMDPathsList Include="@(CsWinRTInputs)" />
<_WinMDPathsList Include="$([MSBuild]::ValueOrDefault('%(_ReferencePathsWithWinMDs.CsWinRTInputs)', '').Split(';'))"
Condition="'%(_ReferencePathsWithWinMDs.CsWinRTInputs)' != ''" />
<_WinMDPathsList Include="$(CsWinRTInteropMetadata)" />
</ItemGroup>

<!-- Invoke 'cswinrtprojectiongen' -->
<RunCsWinRTMergedProjectionGenerator
ReferenceAssemblyPaths="@(ReferencePathWithRefAssemblies)"
GeneratedAssemblyDirectory="$(CsWinRTGeneratorInteropAssemblyDirectory)"
WinMDPaths="@(_WinMDPathsList)"
TargetFramework="$(CsWinRTExeTFM)"
WindowsMetadata="$(CsWinRTWindowsMetadata)"
CsWinRTExePath="$(CsWinRTExe)"
CsWinRTToolsDirectory="$(CsWinRTMergedProjectionEffectiveToolsDirectory)"
CsWinRTToolsArchitecture="$(CsWinRTToolsArchitecture)"
AdditionalArguments="@(CsWinRTGeneratorAdditionalArgument)"
StandardOutputImportance="$(CsWinRTGeneratorStandardOutputImportance)"
StandardErrorImportance="$(CsWinRTGeneratorStandardErrorImportance)"
LogStandardErrorAsError="$(CsWinRTGeneratorLogStandardErrorAsError)" />

<!-- Set the metadata for the interop .dll item -->
<ItemGroup>
<CsWinRTGeneratorMergedProjectionPath Include="$(_CsWinRTGeneratorMergedProjectionAssemblyPath)">
<AssemblyName>WinRT.Projection</AssemblyName>
<TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<IncludeRuntimeDependency>true</IncludeRuntimeDependency>
<Private>true</Private>
<MSBuildSourceTargetName>_RunCsWinRTMergedProjectionGenerator</MSBuildSourceTargetName>
<Platforms>AnyCPU</Platforms>
</CsWinRTGeneratorMergedProjectionPath>
</ItemGroup>

<!-- Add the interop .dll to the required output groups -->
<ItemGroup>

<ReferencePath Include="@(CsWinRTGeneratorMergedProjectionPath)" />

<ReferenceCopyLocalPaths Include="@(CsWinRTGeneratorMergedProjectionPath)" />

<!-- '_SourceItemsToCopyToOutputDirectory' handles copying the interop .dll to the build output folder -->
<_SourceItemsToCopyToOutputDirectory
Include="@(CsWinRTGeneratorMergedProjectionPath)"
TargetPath="$(_CsWinRTGeneratorMergedProjectionOutputAssemblyPath)" />

</ItemGroup>

<!-- Append to 'FileWrites' so the forwarder .dll will be removed on clean -->
<ItemGroup>
<FileWrites Include="@(CsWinRTGeneratorMergedProjectionPath)"/>
</ItemGroup>
</Target>
</Project>
7 changes: 7 additions & 0 deletions nuget/Microsoft.Windows.CsWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<CsWinRTEnabled Condition="'$(CsWinRTEnabled)' != 'true'">false</CsWinRTEnabled>
<CsWinRTGenerateProjection Condition="!$(CsWinRTEnabled)">false</CsWinRTGenerateProjection>
<CsWinRTGenerateProjection Condition="'$(CsWinRTGenerateProjection)' == ''">true</CsWinRTGenerateProjection>
<CsWinRTGenerateReferenceProjection Condition="'$(CsWinRTGenerateReferenceProjection)' == ''">false</CsWinRTGenerateReferenceProjection>
<DebugSymbols Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'">false</DebugSymbols>
<ProduceReferenceAssembly Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'">true</ProduceReferenceAssembly>
<ProduceReferenceAssemblyInOutDir Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'">true</ProduceReferenceAssemblyInOutDir>
<TargetRefPath Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true' ">$([MSBuild]::NormalizePath($(TargetDir), 'ref', $(TargetFileName)))</TargetRefPath>
<AllowUnsafeBlocks Condition="$(CsWinRTEnabled)">true</AllowUnsafeBlocks>

<!--
Expand Down Expand Up @@ -259,6 +264,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<CsWinRTEmbeddedEnums Condition="'$(CsWinRTEmbeddedPublicEnums)' == 'true'">-public_enums</CsWinRTEmbeddedEnums>
<CsWinRTPublicExclusiveTo Condition="'$(CsWinRTPublicExclusiveToInterfaces)' == 'true'">-public_exclusiveto</CsWinRTPublicExclusiveTo>
<CsWinRTDynamicallyInterfaceCastableExclusiveTo Condition="'$(CsWinRTDynamicallyInterfaceCastableExclusiveTo)' == 'true'">-idic_exclusiveto</CsWinRTDynamicallyInterfaceCastableExclusiveTo>
<CsWinRTReferenceProjection Condition="'$(CsWinRTGenerateReferenceProjection)' == 'true'">-reference_projection</CsWinRTReferenceProjection>

<CsWinRTParams Condition="'$(CsWinRTParams)' == ''">
$(CsWinRTCommandVerbosity)
Expand All @@ -272,6 +278,7 @@ $(CsWinRTEmbeddedProjection)
$(CsWinRTEmbeddedEnums)
$(CsWinRTPublicExclusiveTo)
$(CsWinRTDynamicallyInterfaceCastableExclusiveTo)
$(CsWinRTReferenceProjection)
</CsWinRTParams>

<CsWinRTPrivateParams Condition="'$(CsWinRTPrivateParams)' == ''">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ public static void EmitDefaultTypeMapAssemblyTargetAttributes(SourceProductionCo
#pragma warning disable

[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.WindowsRuntimeComWrappersTypeMapGroup>("WinRT.Interop")]
//[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.WindowsRuntimeComWrappersTypeMapGroup>("WinRT.Projection")]
[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.WindowsRuntimeComWrappersTypeMapGroup>("WinRT.Projection")]
[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.WindowsRuntimeComWrappersTypeMapGroup>("WinRT.Runtime2")]
[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.DynamicInterfaceCastableImplementationTypeMapGroup>("WinRT.Interop")]
[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.DynamicInterfaceCastableImplementationTypeMapGroup>("WinRT.Projection")]
[assembly: global::System.Runtime.InteropServices.TypeMapAssemblyTarget<global::WindowsRuntime.InteropServices.DynamicInterfaceCastableImplementationTypeMapGroup>("WinRT.Runtime2")]
""";

context.AddSource("TypeMapAssemblyTarget.g.cs", source);
Expand Down
6 changes: 3 additions & 3 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<PackageVersion Include="ConsoleAppFramework" Version="5.6.2" />
<PackageVersion Include="coverlet.collector" Version="1.3.0" />
<PackageVersion Include="MarkdownLog.NS20" Version="0.10.1" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.8.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="5.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.2" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing" Version="1.1.2" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="4.11.0" />
Expand Down
3 changes: 2 additions & 1 deletion src/Projections/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<IsTrimmable>true</IsTrimmable>
<IsAotCompatible>true</IsAotCompatible>
<IsAotCompatible>true</IsAotCompatible>
<CsWinRTGenerateReferenceProjection>true</CsWinRTGenerateReferenceProjection>
</PropertyGroup>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
Expand Down
6 changes: 6 additions & 0 deletions src/Projections/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
<Import Project="$([MSBuild]::GetPathOfFileAbove('Microsoft.Windows.CsWinRT.CsWinRTGen.targets', '$(MSBuildThisFileDirectory)../../nuget/'))" />

</Project>
Loading
Loading