Use public nuget for game libraries (#413)

* Use public nuget for game libraries

* net40 -> net48
This commit is contained in:
Ricardo 2022-01-06 21:34:41 +01:00 committed by GitHub
parent a4d6e5ddbc
commit d615a41dea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 27 additions and 36 deletions

View File

@ -3,12 +3,5 @@
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="github" value="https://nuget.pkg.github.com/amazingalek/index.json" />
</packageSources>
<packageSourceCredentials>
<github>
<add key="Username" value="amazingalek" />
<add key="ClearTextPassword" value="%INTERNAL_PKG_KEY%" />
</github>
</packageSourceCredentials>
</configuration>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,14 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="OW.Unity.Dlls" Version="1.1.3">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="OuterWildsGameLibs" Version="1.1.11.72" />
</ItemGroup>
</Project>

View File

@ -21,7 +21,7 @@
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy /i /y &quot;$(SolutionDir)src\OWML.ModHelper.Events\bin\Debug\net40\0Harmony.dll&quot; $(TargetDir)&#xD;&#xA;xcopy /i /y &quot;$(SolutionDir)src\OWML.ModHelper.Assets\bin\Debug\net40\NAudio-Unity.dll&quot; $(TargetDir)&#xD;&#xA;xcopy /i /y &quot;$(SolutionDir)src\OWML.Temp\bin\Debug\net48\Newtonsoft.Json.dll&quot; $(TargetDir)" />
<Exec Command="xcopy /i /y &quot;$(SolutionDir)src\OWML.ModHelper.Events\bin\Debug\net48\0Harmony.dll&quot; $(TargetDir)&#xD;&#xA;xcopy /i /y &quot;$(SolutionDir)src\OWML.ModHelper.Assets\bin\Debug\net48\NAudio-Unity.dll&quot; $(TargetDir)&#xD;&#xA;xcopy /i /y &quot;$(SolutionDir)src\OWML.Temp\bin\Debug\net48\Newtonsoft.Json.dll&quot; $(TargetDir)" />
</Target>
</Project>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
<Version>1.1.0</Version>
</PropertyGroup>

View File

@ -21,14 +21,14 @@
</dependencies>
</metadata>
<files>
<file src="bin\Debug\net40\OWML.ModHelper.Assets.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.ModHelper.Events.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.ModHelper.Menus.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.ModHelper.Input.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.ModHelper.Interaction.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.Common.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.Logging.dll" target="lib\net40" />
<file src="bin\Debug\net40\OWML.Utils.dll" target="lib\net40" />
<file src="bin\Debug\net40\NAudio-Unity.dll" target="lib\net40" />
<file src="bin\Debug\net48\OWML.ModHelper.Assets.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.ModHelper.Events.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.ModHelper.Menus.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.ModHelper.Input.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.ModHelper.Interaction.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.Common.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.Logging.dll" target="lib\net48" />
<file src="bin\Debug\net48\OWML.Utils.dll" target="lib\net48" />
<file src="bin\Debug\net48\NAudio-Unity.dll" target="lib\net48" />
</files>
</package>
</package>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<TargetFramework>net48</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

View File

@ -94,7 +94,7 @@ namespace OWML.Launcher.Tests
private void CopyMod(string modName)
{
var fromModPath = $"{OwmlSolutionPath}/src/SampleMods/{modName}/bin/Debug/net40";
var fromModPath = $"{OwmlSolutionPath}/src/SampleMods/{modName}/bin/Debug/net48";
var toModPath = $"{OwmlReleasePath}/Mods/{modName}";
Directory.CreateDirectory(toModPath);
var modFiles = Directory.GetFiles(fromModPath);