Skip to content

Commit

Permalink
Avoid unwanted files in nuget package
Browse files Browse the repository at this point in the history
  • Loading branch information
natenho committed Mar 6, 2021
1 parent a7bbe96 commit 768bdfe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Mockaco.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mockaco.Tests", "test\Mockaco.Tests\Mockaco.Tests.csproj", "{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mockaco.Tests", "test\Mockaco.Tests\Mockaco.Tests.csproj", "{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Nuget|Any CPU = Nuget|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8BAA1EC5-0BF5-4DA2-87F7-ED0C7B652517}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BAA1EC5-0BF5-4DA2-87F7-ED0C7B652517}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BAA1EC5-0BF5-4DA2-87F7-ED0C7B652517}.Nuget|Any CPU.ActiveCfg = Nuget|Any CPU
{8BAA1EC5-0BF5-4DA2-87F7-ED0C7B652517}.Nuget|Any CPU.Build.0 = Nuget|Any CPU
{8BAA1EC5-0BF5-4DA2-87F7-ED0C7B652517}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BAA1EC5-0BF5-4DA2-87F7-ED0C7B652517}.Release|Any CPU.Build.0 = Release|Any CPU
{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}.Debug|Any CPU.ActiveCfg = Release|Any CPU
{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}.Nuget|Any CPU.ActiveCfg = Release|Any CPU
{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE57B1B4-29D2-4AE3-8F23-5E622302C30F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
Expand Down
16 changes: 14 additions & 2 deletions src/Mockaco/Mockaco.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..</DockerfileContext>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Configurations>Debug;Release;Nuget</Configurations>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -42,14 +43,25 @@
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
</ItemGroup>

<ItemGroup>
<None Update="Plugins\Readme.md">
<ItemGroup Condition="$(Configuration) != 'Debug'">
<Content Remove="Mocks\**" />
<None Include="Mocks\hello.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Resources\mockaco-icon.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<Content Remove="Settings\**" />
<None Include="Settings\**">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<None Update="Plugins\Readme.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>

0 comments on commit 768bdfe

Please sign in to comment.