-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Port of cswinmd * Scope down - remove xdc for now * use dll crt * fb * > * pr feedback * > * Move to .NET 6 and drop AnyCPU in global sln config Co-authored-by: Manodasan Wignarajah <[email protected]>
- Loading branch information
1 parent
f25f408
commit bbc6a9d
Showing
18 changed files
with
677 additions
and
28 deletions.
There are no files selected for viewing
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,34 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata minClientVersion="2.5"> | ||
<id>Microsoft.Windows.CsWinMD</id> | ||
<version>$cswinmd_nuget_version$</version> | ||
<title>C#/WinMD tooling</title> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>C#/WinMD provides support for compiling WinRT API definitions written in C# to be implemented in C++.</description> | ||
<releaseNotes>Release notes are available at https://github.com/microsoft/CsWinRT/releases</releaseNotes> | ||
<tags>C++ C#/WinMD WinRT cswinmd WinMD xlang</tags> | ||
<copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
<license type="file">LICENSE</license> | ||
<projectUrl>https://github.com/microsoft/cswinrt</projectUrl> | ||
<dependencies> | ||
<group targetFramework="native" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="LICENSE"/> | ||
<file src="NOTICE.txt"/> | ||
|
||
<file src="$cswinmd_outpath$\CsWinMD.deps.json" target="tools\native"/> | ||
<file src="$cswinmd_outpath$\cswinmd.dll" target="tools\native"/> | ||
<file src="$cswinmd_outpath$\cswinmd.exe" target="tools\native"/> | ||
<file src="$cswinmd_outpath$\CsWinMD.runtimeconfig.json" target="tools\native"/> | ||
<file src="$cswinmd_outpath$\Microsoft.CodeAnalysis.CSharp.dll" target="tools\native"/> | ||
<file src="$cswinmd_outpath$\Microsoft.CodeAnalysis.dll" target="tools\native"/> | ||
<file src="$cswinmd_outpath$\WinRT.SourceGenerator.dll" target="tools\native"/> | ||
<file src="Microsoft.Windows.CsWinMD.targets" target="build"/> | ||
|
||
</files> | ||
</package> |
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="CSWinMDProduceWinMDFromCSharpComponent" BeforeTargets="CSWinMDInsertComponentWinMD"> | ||
<PropertyGroup> | ||
<CsWinMDPath Condition="'$(CsWinMDPath)'==''">$(MSBuildThisFileDirectory)..\tools\native\CsWinMD.exe</CsWinMDPath> | ||
<CsWinMDOutputPath Condition="'$(CsWinMDOutputPath)'==''">$(OutDir)cswinmd-$(ProjectName)</CsWinMDOutputPath> | ||
</PropertyGroup> | ||
<Message Text="Producing winmd for %(CSWinMDComponent.Identity)" Importance="High" /> | ||
<Message Text="$(CsWinMDPath) -i %(CSWinMDComponent.FullPath) -o $(CsWinMDOutputPath) -a $(RootNamespace)" Importance="High" /> | ||
<MakeDir Directories="$(CSWinMDOutputPath)" /> | ||
<Exec Command="$(CsWinMDPath) -i %(CSWinMDComponent.FullPath) -o $(CsWinMDOutputPath) -a $(RootNamespace)" /> | ||
</Target> | ||
|
||
<Target Name="CSWinMDInsertComponentWinMD" AfterTargets="GetCppWinRTMdMergeInputs" BeforeTargets="CppWinRTMakeComponentProjection;CppWinRTMergeProjectWinMDInputs"> | ||
<ItemGroup> | ||
<CppWinRTMdMergeInputs Include="@(CSWinMDComponent->'$(CsWinMDOutputPath)\%(FileName).winmd')"> | ||
<IsWinMDFile>true</IsWinMDFile> | ||
</CppWinRTMdMergeInputs> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
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
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
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
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,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>net6.0</TargetFrameworks> | ||
<RollForward>Major</RollForward> | ||
<LangVersion>preview</LangVersion> | ||
<Authors>Microsoft Corporation</Authors> | ||
<Company>Microsoft Corporation</Company> | ||
<Product>C#/WinRT</Product> | ||
<PackageId>Microsoft.Windows.CsWinMD</PackageId> | ||
|
||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages> | ||
<FileVersion>$(VersionNumber)</FileVersion> | ||
<Version>$(VersionNumber)</Version> | ||
<AssemblyVersion>$(VersionNumber)</AssemblyVersion> | ||
<InformationalVersion>$(VersionNumber)</InformationalVersion> | ||
<NeutralLanguage>en</NeutralLanguage> | ||
|
||
<Description>C# to WinMD authoring tool Preview $(VersionString)</Description> | ||
<AssemblyTitle>C# to WinMD authoring tool Preview v$(VersionString)</AssemblyTitle> | ||
<Copyright>Copyright (c) Microsoft Corporation. All rights reserved.</Copyright> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="3.11.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0" /> | ||
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\WinRT.SourceGenerator\WinRT.SourceGenerator.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.