Skip to content

Commit 38758cf

Browse files
author
Ruben Schmidmeister
authored
Merge pull request #8 from messerli-informatik-ag/use-no-targets-sdk
Use NoTargets SDK
2 parents 5dbcd1c + 9407108 commit 38758cf

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ mono: none
66
script:
77
- dotnet restore
88
- dotnet build
9+
- dotnet pack -c Release
10+
- 'unzip -l bin/Release/*.nupkg'

CodeStyle.csproj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project Sdk="Microsoft.NET.Sdk">
2+
<Project Sdk="Microsoft.Build.NoTargets">
33
<PropertyGroup>
4-
<AssemblyName>Messerli.CodeStyle</AssemblyName>
54
<Version>1.0.0-alpha.1</Version>
65
<RepositoryUrl>https://github.com/messerli-informatik-ag/code-style</RepositoryUrl>
76
<RepositoryType>git</RepositoryType>
@@ -26,9 +25,15 @@
2625
<Pack>true</Pack>
2726
<PackagePath>build\$(TargetFramework)\Config</PackagePath>
2827
</None>
29-
<None Include="$(AssemblyName).targets">
28+
<!-- This file is automatically loaded by MSBuild when a project depends on this package using <PackageReference> -->
29+
<None Include="$(PackageId).targets">
3030
<Pack>true</Pack>
3131
<PackagePath>build\$(TargetFramework)</PackagePath>
3232
</None>
33+
<!-- This file makes the nuget package framework dependent -->
34+
<None Include="lib/_._">
35+
<Pack>true</Pack>
36+
<PackagePath>lib\$(TargetFramework)</PackagePath>
37+
</None>
3338
</ItemGroup>
3439
</Project>

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"msbuild-sdks": {
3+
"Microsoft.Build.NoTargets": "1.0.88"
4+
}
5+
}

lib/_._

Whitespace-only changes.

0 commit comments

Comments
 (0)