fix: Fixes publishing (#1808)
### Summary - Fixes publishing issues when the Application project was created. - Fixes missing dotnet clean file deletions
This commit is contained in:
parent
b2695b9f6c
commit
5f8f7982eb
5 changed files with 23 additions and 10 deletions
|
|
@ -11,10 +11,21 @@
|
||||||
<Configurations>Debug;Release;Analyze</Configurations>
|
<Configurations>Debug;Release;Analyze</Configurations>
|
||||||
<RootNamespace>Server</RootNamespace>
|
<RootNamespace>Server</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<Target Name="CleanPub" AfterTargets="Clean">
|
||||||
|
<Message Text="Application: Removing distribution files..." />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName)" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).deps.json" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).dll" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).dll.config" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).exe" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).pdb" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).runtimeconfig.dev.json" ContinueOnError="true" />
|
||||||
|
<Delete Files="..\..\Distribution\$(AssemblyName).runtimeconfig.json" ContinueOnError="true" />
|
||||||
|
</Target>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Server\Server.csproj" />
|
<ProjectReference Include="..\Server\Server.csproj" />
|
||||||
<ProjectReference Include="..\UOContent\UOContent.csproj" Private="false" PrivateAssets="All" IncludeAssets="None">
|
<ProjectReference Include="..\UOContent\UOContent.csproj" Private="false" PrivateAssets="All" IncludeAssets="None">
|
||||||
<IncludeInPackage>false</IncludeInPackage>
|
<IncludeInPackage>false</IncludeInPackage>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,14 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>ModernUO Core</Product>
|
<Product>ModernUO Core</Product>
|
||||||
<OutDir>..\..\Distribution</OutDir>
|
<OutDir>..\..\Distribution</OutDir>
|
||||||
|
<PublishDir>..\..\Distribution</PublishDir>
|
||||||
<Version>0.0.0</Version>
|
<Version>0.0.0</Version>
|
||||||
<Configurations>Debug;Release;Analyze</Configurations>
|
<Configurations>Debug;Release;Analyze</Configurations>
|
||||||
<RootNamespace>Server</RootNamespace>
|
<RootNamespace>Server</RootNamespace>
|
||||||
<PackageId>Server</PackageId>
|
<PackageId>Server</PackageId>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target Name="CleanPub" AfterTargets="Clean">
|
<Target Name="CleanPub" AfterTargets="Clean">
|
||||||
<Message Text="Removing distribution files..." />
|
<Message Text="Server: Removing distribution files..." />
|
||||||
<Delete Files="..\..\Distribution\$(AssemblyName)" ContinueOnError="true" />
|
<Delete Files="..\..\Distribution\$(AssemblyName)" ContinueOnError="true" />
|
||||||
<Delete Files="..\..\Distribution\$(AssemblyName).deps.json" ContinueOnError="true" />
|
<Delete Files="..\..\Distribution\$(AssemblyName).deps.json" ContinueOnError="true" />
|
||||||
<Delete Files="..\..\Distribution\$(AssemblyName).dll" ContinueOnError="true" />
|
<Delete Files="..\..\Distribution\$(AssemblyName).dll" ContinueOnError="true" />
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,11 @@
|
||||||
<AssemblyName>UOContent</AssemblyName>
|
<AssemblyName>UOContent</AssemblyName>
|
||||||
<Product>ModernUO Content</Product>
|
<Product>ModernUO Content</Product>
|
||||||
<OutDir>..\..\Distribution\Assemblies</OutDir>
|
<OutDir>..\..\Distribution\Assemblies</OutDir>
|
||||||
|
<PublishDir>..\..\Distribution\Assemblies</PublishDir>
|
||||||
<Configurations>Debug;Release;Analyze</Configurations>
|
<Configurations>Debug;Release;Analyze</Configurations>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target Name="CleanPub" AfterTargets="Clean">
|
<Target Name="CleanPub" AfterTargets="Clean">
|
||||||
<Message Text="Removing distribution assemblies..." />
|
<Message Text="UOContent: Removing distribution assemblies..." />
|
||||||
<Delete Files="..\..\Distribution\Assemblies\Argon2.Bindings.dll" ContinueOnError="true" />
|
<Delete Files="..\..\Distribution\Assemblies\Argon2.Bindings.dll" ContinueOnError="true" />
|
||||||
<Delete Files="..\..\Distribution\Assemblies\libargon2.dll" ContinueOnError="true" />
|
<Delete Files="..\..\Distribution\Assemblies\libargon2.dll" ContinueOnError="true" />
|
||||||
<Delete Files="..\..\Distribution\Assemblies\BouncyCastle.Cryptography.dll" ContinueOnError="true" />
|
<Delete Files="..\..\Distribution\Assemblies\BouncyCastle.Cryptography.dll" ContinueOnError="true" />
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ dotnet clean --verbosity quiet
|
||||||
echo dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
echo dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
echo dotnet publish %config% %os%-%arch% --no-restore --self-contained=false -o Distribution Projects\Application\Application.csproj
|
echo dotnet publish %config% %os%-%arch% --no-restore --self-contained=false
|
||||||
dotnet publish %config% %os%-%arch% --no-restore --self-contained=false -o Distribution Projects\Application\Application.csproj
|
dotnet publish %config% %os%-%arch% --no-restore --self-contained=false
|
||||||
|
|
||||||
echo Generating serialization migration schema...
|
echo Generating serialization migration schema...
|
||||||
dotnet tool run ModernUOSchemaGenerator -- ModernUO.sln
|
dotnet tool run ModernUOSchemaGenerator -- ModernUO.sln
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ dotnet clean --verbosity quiet
|
||||||
echo dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
echo dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
dotnet restore --force-evaluate --source https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
echo dotnet publish ${config} ${os}-${arch} --no-restore --self-contained=false -o Distribution Projects/Application/Application.csproj
|
echo dotnet publish ${config} ${os}-${arch} --no-restore --self-contained=false
|
||||||
dotnet publish ${config} ${os}-${arch} --no-restore --self-contained=false -o Distribution Projects/Application/Application.csproj
|
dotnet publish ${config} ${os}-${arch} --no-restore --self-contained=false
|
||||||
|
|
||||||
echo Generating serialization migration schema...
|
echo Generating serialization migration schema...
|
||||||
dotnet tool run ModernUOSchemaGenerator -- ModernUO.sln
|
dotnet tool run ModernUOSchemaGenerator -- ModernUO.sln
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue