This commit is contained in:
Scott Jones 2019-10-18 07:44:05 -07:00
Родитель 80ff8dce6f
Коммит e5aca89791
7 изменённых файлов: 92 добавлений и 5 удалений

Просмотреть файл

@ -28,7 +28,7 @@ if /I "%cswinrt_configuration%" equ "all" (
)
if "%cswinrt_configuration%"=="" (
set cswinrt_configuration=Debug
set cswinrt_configuration=Debug
)
echo Building cswinrt for %cswinrt_platform% %cswinrt_configuration%
@ -36,9 +36,12 @@ msbuild cswinrt.sln /p:platform=%cswinrt_platform%;configuration=%cswinrt_config
rem Build/Run xUnit tests, generating xml output report for Azure Devops reporting, via XunitXml.TestLogger NuGet
echo Running cswinrt unit tests for %cswinrt_platform% %cswinrt_configuration%
if %cswinrt_platform% == x86 (
set program_files="%ProgramFiles(x86)%"
if %cswinrt_platform%==x86 (
set program_files="%ProgramFiles(x86)%"
) else (
set program_files="%ProgramFiles%"
set program_files="%ProgramFiles%"
)
%program_files%\dotnet\dotnet.exe test --no-build --logger xunit;LogFilePath=test_%cswinrt_version%.xml unittest/UnitTest.csproj /nologo /m /p:platform=%cswinrt_platform%;configuration=%cswinrt_configuration%
%program_files%\dotnet\dotnet.exe test --no-build --logger xunit;LogFilePath=%~dp0test_%cswinrt_version%.xml unittest/UnitTest.csproj /nologo /m /p:platform=%cswinrt_platform%;configuration=%cswinrt_configuration%
set cswinrt_bin_dir=%~dp0_build\%cswinrt_platform%\%cswinrt_configuration%
nuget pack nuget/Microsoft.Windows.CsWinRT.nuspec -Properties cswinrt_exe=%cswinrt_bin_dir%\cswinrt.exe -Version %cswinrt_version% -OutputDirectory %cswinrt_bin_dir% -NonInteractive -Verbosity Detailed

21
nuget/LICENSE Normal file
Просмотреть файл

@ -0,0 +1,21 @@
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

Просмотреть файл

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata minClientVersion="2.5">
<id>Microsoft.Windows.CsWinRT</id>
<version>1.0.0.0</version>
<title>C#/WinRT Build Support</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>C#/WinRT provides packaged WinRT projection support for the C# language. It is compatible with .NET Standard 2.2 and later and does not require any built-in knowledge of WinRT by the C# compiler.</description>
<releaseNotes></releaseNotes>
<tags>managed C# WinRT WinMD xlang</tags>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<license type="file">LICENSE</license>
<projectUrl>https://github.com/microsoft/cswinrt/tree/master/</projectUrl>
</metadata>
<files>
<file src="LICENSE"/>
<file src="$cswinrt_exe$"/>
<file src="Microsoft.Windows.CsWinRT.props"/>
<file src="readme.txt"/>
</files>
</package>

Просмотреть файл

@ -0,0 +1,12 @@
<!--
***********************************************************************************************
Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CsWinRTPath Condition="'$(CsWinRTPath)'==''">$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)))</CsWinRTPath>
</PropertyGroup>
</Project>

6
nuget/SignConfig.xml Normal file
Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<SignConfigXML>
<job platform="" configuration="" dest="__OUTPATHROOT__" jobname="CsWinRT NuGet" approvers="">
<file src="__INPATHROOT__\Microsoft.Windows.CsWinRT.*.nupkg" signType="CP-401405" dest="__OUTPATHROOT__\Microsoft.Windows.CsWinRT.*.nupkg" />
</job>
</SignConfigXML>

7
nuget/readme.md Normal file
Просмотреть файл

@ -0,0 +1,7 @@
# Microsoft.Windows.CsWinRT NuGet Package
## Overview
Please visit [Microsoft.Windows.CsWinRT](https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/) for official Microsoft-signed builds of the NuGet package.
The Microsoft.Windows.CsWinRT NuGet package provides WinRT projection support for the C# language. Adding a reference to this package causes C# projection sources to be generated for any Windows metadata referenced by the project. For details on package use, please consult the Microsoft.Windows.CsWinRT github repo's [readme.md](https://github.com/microsoft/cswinrt/blob/master/README.md).

15
nuget/readme.txt Normal file
Просмотреть файл

@ -0,0 +1,15 @@
========================================================================
Microsoft.Windows.CsWinRT C#/WinRT Projection Tool
========================================================================
C#/WinRT provides packaged WinRT projection support for the C# language.
It is compatible with .NET Standard 2.2 and later and does not require
any built-in knowledge of WinRT by the C# compiler.
C#/WinRT is part of the xlang family of projects that help developers create
APIs that can run on multiple platforms and be used with a variety of languages.
========================================================================
For more information, visit:
https://github.com/microsoft/cswinrt/
========================================================================