Skip to content

Commit

Permalink
Remove CopyProjectReferencesToPackage & PrivateAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
JayArrowz committed Jan 26, 2021
1 parent 03003cf commit ad26c0e
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 94 deletions.
10 changes: 1 addition & 9 deletions NetScape.Abstractions/NetScape.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<Description>NetScape Abstraction Modules</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -20,13 +19,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>

</Project>
9 changes: 1 addition & 8 deletions NetScape.GameServer/NetScape.Modules.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape Netty Server Module</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -15,12 +14,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
9 changes: 1 addition & 8 deletions NetScape.Modules.Cache/NetScape.Modules.Cache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape Cache Modules</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -20,12 +19,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
9 changes: 1 addition & 8 deletions NetScape.Modules.DAL/NetScape.Modules.DAL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape Database Access Layer</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -17,12 +16,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape 317 Login Protocol Module</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
Expand All @@ -14,13 +13,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
12 changes: 3 additions & 9 deletions NetScape.Modules.Messages/NetScape.Modules.Messages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>NetScape 317 Messaging Module</Description>
</PropertyGroup>

Expand All @@ -27,14 +26,9 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages.Generator\NetScape.Modules.Messages.Generator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Region\NetScape.Modules.Region.csproj" />
<ProjectReference Include="..\NetScape.Modules.Region\NetScape.Modules.Region.csproj" />
</ItemGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
9 changes: 1 addition & 8 deletions NetScape.Modules.Region/NetScape.Modules.Region.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape Region Modules</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,15 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape Entity Updating Module</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dawn.Guard" Version="1.12.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Messages\NetScape.Modules.Messages.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages\NetScape.Modules.Messages.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages.Builder\NetScape.Modules.Messages.Builder.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
9 changes: 1 addition & 8 deletions NetScape.Modules.World/NetScape.Modules.World.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@
<TargetFramework>netcoreapp5.0</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Description>NetScape World Module</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Serilog" Version="2.10.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>
26 changes: 10 additions & 16 deletions NetScape/NetScape.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp5.0</TargetFramework>
<Description>NetScape Server</Description>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<ItemGroup>
<Content Include="appsettings.json">
Expand All @@ -31,21 +30,16 @@
</ItemGroup>

<ItemGroup>
<ProjectReference PrivateAssets="all" Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.GameServer\NetScape.Modules.Server.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.DAL\NetScape.Modules.DAL.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Logging.SeriLog\NetScape.Modules.Logging.SeriLog.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.LoginProtocol\NetScape.Modules.LoginProtocol.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Cache\NetScape.Modules.Cache.csproj" />
<ProjectReference Include="..\NetScape.Abstractions\NetScape.Abstractions.csproj" />
<ProjectReference Include="..\NetScape.GameServer\NetScape.Modules.Server.csproj" />
<ProjectReference Include="..\NetScape.Modules.DAL\NetScape.Modules.DAL.csproj" />
<ProjectReference Include="..\NetScape.Modules.Logging.SeriLog\NetScape.Modules.Logging.SeriLog.csproj" />
<ProjectReference Include="..\NetScape.Modules.LoginProtocol\NetScape.Modules.LoginProtocol.csproj" />
<ProjectReference Include="..\NetScape.Modules.Cache\NetScape.Modules.Cache.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages.Generator\NetScape.Modules.Messages.Generator.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Messages\NetScape.Modules.Messages.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.Region\NetScape.Modules.Region.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.World.Updating\NetScape.Modules.World.Updating.csproj" />
<ProjectReference PrivateAssets="all" Include="..\NetScape.Modules.World\NetScape.Modules.World.csproj" />
<ProjectReference Include="..\NetScape.Modules.Messages\NetScape.Modules.Messages.csproj" />
<ProjectReference Include="..\NetScape.Modules.Region\NetScape.Modules.Region.csproj" />
<ProjectReference Include="..\NetScape.Modules.World.Updating\NetScape.Modules.World.Updating.csproj" />
<ProjectReference Include="..\NetScape.Modules.World\NetScape.Modules.World.csproj" />
</ItemGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>
</Project>

0 comments on commit ad26c0e

Please sign in to comment.