commit yo

This commit is contained in:
Tommy Parnell
2017-04-19 21:40:14 -04:00
commit 2cfe2e9d9d
7 changed files with 73 additions and 0 deletions

21
Package.nuspec Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<package>
<metadata>
<id>TerribleDev.RuntimeIdentifier.MSBuild</id>
<version>1.0.1</version>
<authors>Tommy Parnell</authors>
<owners>Tommy Parnell</owners>
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl>
<projectUrl>https://github.com/TerribleDev/TerribleDev.RuntimeIdentifier.MSBuild</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Add an msbuild task to automatically compile your apps runtime identifier</description>
<copyright>Copyright 2017</copyright>
<tags>msbuild dotnetcore runtimeidentifier </tags>
</metadata>
<files>
<file src=".\build\**" target="build" />
<file src=".\buildMultiTargeting\**" target="buildMultiTargeting" />
<file src=".\lib\**" target="lib" />
<file src="readme.txt" target="" />
</files>
</package>

Binary file not shown.

View File

@@ -0,0 +1,16 @@
<Project>
<Target Name="PublishAll" AfterTargets="Publish"
Condition="'$(RuntimeIdentifier)'=='' and '$(RuntimeIdentifiers)'!=''">
<ItemGroup>
<RIDsToPublish Include="$(RuntimeIdentifiers)" />
</ItemGroup>
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Publish"
Properties="RuntimeIdentifier=%(RIDsToPublish.Identity)"
RemoveProperties="RuntimeIdentifiers"/>
</Target>
<Target Name="PublishRID" AfterTargets="Publish"
Condition="'$(RuntimeIdentifier)'!=''">
</Target>
</Project>

View File

@@ -0,0 +1,3 @@
<Project>
<Import Project="..\build\Yarn.MSBuild.targets" />
</Project>

0
lib/netstandard1.1/_._ Normal file
View File

32
readme.md Normal file
View File

@@ -0,0 +1,32 @@
## TerribleDev.RuntimeIdentifier.MSBuild
A simple package to build all of your runtime identifiers
# Installation
Visual Studio:
```
PM> Install-Package TerribleDev.RuntimeIdentifier.MSBuild
```
dotnet cli
```
$ dotnet add package TerribleDev.RuntimeIdentifier.MSBuild
```
# Usage
add some runtime identifiers to your property group
```xml
<PropertyGroup>
<RuntimeIdentifiers>win10-x64;osx.10.11-x64</RuntimeIdentifiers>
</PropertyGroup>
```
run `dotnet publish` watch how you no longer have to specify the runtimes to compile for.

1
readme.txt Normal file
View File

@@ -0,0 +1 @@
This is a simple package that hooks into the AfterPublish target, and compiles all of your runtime identifiers. After you install this you should run dotnet restore.