Skip to content

Commit

Permalink
Centralize Build Props Leveraging MSBuildThisFileDirectory (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenswan committed Oct 2, 2023
1 parent f17629b commit e07eaac
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../BlazorFocused.Automation.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)src/BlazorFocused.Automation.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

</Project>
5 changes: 5 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup Label="NuGet Artifacts">
<None Include="$(MSBuildThisFileDirectory)BlazorFocused.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" Visible="false"/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
<PackageReference Include="System.CommandLine" />
</ItemGroup>

<ItemGroup Label="NuGet Artifacts">
<None Include="..\..\..\BlazorFocused.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="..\README.md" Pack="true" PackagePath="\" Visible="false" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<PackageTags>dotnet;csharp;powershell;pscmdlet;cmdlet;</PackageTags>
</PropertyGroup>

<PropertyGroup Label="Publishing Properties Override (Path)">
<AssemblyOriginatorKeyFile>../../../BlazorFocused.Automation.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="PowerShellStandard.Library" />
</ItemGroup>
Expand All @@ -23,11 +19,6 @@
<ProjectReference Include="..\..\..\Runtime\src\BlazorFocused.Automation.Runtime.csproj" />
</ItemGroup>

<ItemGroup Label="NuGet Artifacts">
<None Include="..\..\..\..\BlazorFocused.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="..\README.md" Pack="true" PackagePath="\" Visible="false"/>
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,4 @@
<ProjectReference Include="..\src\BlazorFocused.Automation.PowerShell.csproj" />
</ItemGroup>

<PropertyGroup Label="Publishing Properties Override (Path)">
<AssemblyOriginatorKeyFile>../../../BlazorFocused.Automation.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
<ProjectReference Include="..\..\PowerShell\src\BlazorFocused.Automation.PowerShell.csproj" />
</ItemGroup>

<ItemGroup Label="NuGet Artifacts">
<None Include="..\..\..\..\BlazorFocused.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="..\README.md" Pack="true" PackagePath="\" Visible="false"/>
</ItemGroup>

<PropertyGroup Label="Publishing Properties Override (Path)">
<AssemblyOriginatorKeyFile>../../../BlazorFocused.Automation.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,4 @@
<ProjectReference Include="..\src\BlazorFocused.Automation.PowerShell.Tools.csproj" />
</ItemGroup>

<PropertyGroup Label="Publishing Properties Override (Path)">
<AssemblyOriginatorKeyFile>../../../BlazorFocused.Automation.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

</Project>
5 changes: 0 additions & 5 deletions src/Runtime/src/BlazorFocused.Automation.Runtime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
<PackageReference Include="Microsoft.Extensions.Hosting" />
</ItemGroup>

<ItemGroup Label="NuGet Artifacts">
<None Include="..\..\..\BlazorFocused.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="..\README.md" Pack="true" PackagePath="\" Visible="false"/>
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>
Expand Down

0 comments on commit e07eaac

Please sign in to comment.