commit yo
This commit is contained in:
21
Package.nuspec
Normal file
21
Package.nuspec
Normal 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>
|
||||
BIN
TerribleDev.RuntimeIdentifier.MSBuild.1.0.1.nupkg
Normal file
BIN
TerribleDev.RuntimeIdentifier.MSBuild.1.0.1.nupkg
Normal file
Binary file not shown.
16
build/TerribleDev.RuntimeIdentifier.MSBuild.targets
Normal file
16
build/TerribleDev.RuntimeIdentifier.MSBuild.targets
Normal 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>
|
||||
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="..\build\Yarn.MSBuild.targets" />
|
||||
</Project>
|
||||
0
lib/netstandard1.1/_._
Normal file
0
lib/netstandard1.1/_._
Normal file
32
readme.md
Normal file
32
readme.md
Normal 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
1
readme.txt
Normal 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.
|
||||
Reference in New Issue
Block a user