-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CsWinRT projection producing project for deployment API #4949
Changes from all commits
e7028e1
8b1cfce
1cc2bf6
fb59612
7fe516a
01c112f
3886023
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ AMap | |
Amd | ||
amrutha | ||
ansistring | ||
Aot | ||
APARTMENTTHREADED | ||
apfn | ||
apicontract | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net8.0-windows10.0.22000.0</TargetFrameworks> | ||
<Platform>AnyCpu</Platform> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutputPath> | ||
<Configurations>Debug;Release;ReleaseStatic</Configurations> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On .NET 8, we should also add: <IsAotCompatible>true</IsAotCompatible>
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling> |
||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<IsAotCompatible>true</IsAotCompatible> | ||
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling> | ||
<!-- | ||
!!! Remove or update this on the next Microsoft.Windows.CsWinRT package version update. !!! | ||
--> | ||
<WindowsSdkPackageVersion>10.0.22000.53</WindowsSdkPackageVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the .targets in the NuGet package, we should add this: <WindowsMetadataReference Include="<WINMD_PATH>" IsOutOfProcess="true" /> Where "<WINMD_PATH>" is the right path to the .winmd in the NuGet package. |
||
<CsWinRTIncludes>Microsoft.Management.Deployment</CsWinRTIncludes> | ||
<CsWinRTGeneratedFilesDir>$(OutDir)</CsWinRTGeneratedFilesDir> | ||
<CsWinRTWindowsMetadata>10.0.22000.0</CsWinRTWindowsMetadata> | ||
<!-- Ensure Support for Windows 10, Version 1809 --> | ||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<!-- Workaround for MSB3271 error on processor architecture mismatch --> | ||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.6" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Microsoft.Management.Deployment\Microsoft.Management.Deployment.vcxproj"> | ||
<OutputItemType>Content</OutputItemType> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<ReferenceOutputAssembly>True</ReferenceOutputAssembly> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add: