Skip to content

Commit

Permalink
Merge pull request #6 from krafs/dev
Browse files Browse the repository at this point in the history
Hide Publicize-items
  • Loading branch information
krafs authored Jan 24, 2022
2 parents 64f7920 + 9c9cbe8 commit ce0697c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dotnet add package Krafs.Publicizer
Or add directly to your project file:
```xml
<ItemGroup>
<PackageReference Include="Krafs.Publicizer" Version="1.0.1" />
<PackageReference Include="Krafs.Publicizer" Version="1.0.2" />
</ItemGroup>
```

Expand Down Expand Up @@ -59,8 +59,8 @@ PackageReferences, like other kinds of References, point towards one or more und
Below is an example of publicizing two assemblies from the package [Krafs.Rimworld.Ref](https://www.nuget.org/packages/Krafs.Rimworld.Ref/):
```xml
<ItemGroup>
<PackageReference Include="Krafs.Publicizer" Version="1.0.1" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3117" />
<PackageReference Include="Krafs.Publicizer" Version="1.0.2" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3200" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Publicizer.Tests/Publicizer.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="MSBuild.ProjectCreation" Version="6.3.3" />
</ItemGroup>

Expand Down
7 changes: 7 additions & 0 deletions src/Publicizer/Krafs.Publicizer.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<Project>

<UsingTask
TaskName="PublicizeAssemblies"
AssemblyFile="$([MSBuild]::ValueOrDefault('$(PublicizeAssembliesTaskAssembly)', '$(MSBuildThisFileDirectory)net472\Publicizer.dll'))" />

<ItemDefinitionGroup>
<Publicize Visible="false" />
<DoNotPublicize Visible="false" />
</ItemDefinitionGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Publicizer/Publicizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<RepositoryUrl>https://github.com/krafs/Publicizer.git</RepositoryUrl>
<Description>MSBuild library for allowing direct access to non-public members in .NET assemblies.</Description>
<PackageTags>msbuild accesschecks public publicizer</PackageTags>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dnlib" Version="3.3.5" />
<PackageReference Include="ILRepack.Lib.MSBuild" Version="2.1.17.1" PrivateAssets="All" />
<PackageReference Include="dnlib" Version="3.4.0" />
<PackageReference Include="ILRepack.Lib.MSBuild" Version="2.1.18" PrivateAssets="All" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.0.0" PrivateAssets="all" ExcludeAssets="runtime" />
</ItemGroup>

Expand Down

0 comments on commit ce0697c

Please sign in to comment.