updated to netcoreapp3.1

This commit is contained in:
Ell 2020-10-07 07:15:36 +02:00
parent 378c0b4484
commit e3aa6d7ba9
9 changed files with 22 additions and 32 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "MonoGame"]
path = MonoGame
url = https://github.com/MonoGame/MonoGame

View File

@ -4,10 +4,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Contentless", "Contentless\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test", "Test\Test.csproj", "{58716AA9-5BCE-42C5-A0E7-D8B23C0488BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Framework.Content.Pipeline", "MonoGame\MonoGame.Framework.Content.Pipeline\MonoGame.Framework.Content.Pipeline.csproj", "{A0BF6B94-5CF3-4456-AFEA-D956CF2AB92D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Framework.DesktopGL", "MonoGame\MonoGame.Framework\MonoGame.Framework.DesktopGL.csproj", "{A8CFF376-58A8-41BB-8615-5232BB2B21EF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -22,13 +18,5 @@ Global
{58716AA9-5BCE-42C5-A0E7-D8B23C0488BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58716AA9-5BCE-42C5-A0E7-D8B23C0488BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58716AA9-5BCE-42C5-A0E7-D8B23C0488BA}.Release|Any CPU.Build.0 = Release|Any CPU
{A0BF6B94-5CF3-4456-AFEA-D956CF2AB92D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0BF6B94-5CF3-4456-AFEA-D956CF2AB92D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0BF6B94-5CF3-4456-AFEA-D956CF2AB92D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0BF6B94-5CF3-4456-AFEA-D956CF2AB92D}.Release|Any CPU.Build.0 = Release|Any CPU
{A8CFF376-58A8-41BB-8615-5232BB2B21EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A8CFF376-58A8-41BB-8615-5232BB2B21EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A8CFF376-58A8-41BB-8615-5232BB2B21EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A8CFF376-58A8-41BB-8615-5232BB2B21EF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net462</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup>
@ -10,12 +10,13 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\MonoGame\MonoGame.Framework.Content.Pipeline\MonoGame.Framework.Content.Pipeline.csproj">
<PackageReference Include="Autofac" Version="5.2.0" />
<PackageReference Include="MonoGame.Framework.Content.Pipeline" Version="3.8.0.1641">
<PrivateAssets>All</PrivateAssets>
</ProjectReference>
<ProjectReference Include="..\MonoGame\MonoGame.Framework\MonoGame.Framework.DesktopGL.csproj">
</PackageReference>
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641">
<PrivateAssets>All</PrivateAssets>
</ProjectReference>
</PackageReference>
</ItemGroup>
<ItemGroup>

View File

@ -2,7 +2,7 @@
<package>
<metadata>
<id>Contentless</id>
<version>3.0.1</version>
<version>3.0.2</version>
<authors>Ellpeck</authors>
<description>A tool for MonoGame that automatically handles adding assets to the Content Pipeline project</description>
<tags>monogame mono xna content pipeline mgcb builder tool library</tags>
@ -12,8 +12,8 @@
</metadata>
<files>
<file src="../README.md" target="README.md"/>
<file src="_._" target="lib/net462/"/>
<file src="_._" target="lib/netcoreapp3.1/"/>
<file src="Contentless.targets" target="build/Contentless.targets"/>
<file src="bin\Debug\net462\**\*" target="tools/"/>
<file src="bin\Debug\netcoreapp3.1\**\*" target="tools/"/>
</files>
</package>

View File

@ -17,7 +17,7 @@ namespace Contentless {
return;
}
var contentFile = new FileInfo(Path.Combine(Environment.CurrentDirectory, args[0]));
var contentFile = new FileInfo(Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, args[0])));
if (!contentFile.Exists) {
Console.WriteLine($"Unable to find content file {contentFile}");
return;
@ -49,7 +49,7 @@ namespace Contentless {
if (!line.StartsWith("/reference:"))
continue;
var reference = line.Substring(11);
var refPath = Path.Combine(contentFile.DirectoryName, reference);
var refPath = Path.GetFullPath(Path.Combine(contentFile.DirectoryName, reference));
try {
Assembly.LoadFrom(refPath);
Console.WriteLine($"Using reference {refPath}");
@ -157,8 +157,8 @@ namespace Contentless {
if (processor != null)
processors.Add(type.Name);
}
} catch {
// ignored
} catch (Exception e) {
Console.WriteLine($"Error gathering types in reference {assembly}: {e}");
}
}
return (importers, processors);

@ -1 +0,0 @@
Subproject commit 661de69369ecf0f4e078551b81836586bf6c2c67

6
NuGet.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="globalPackagesFolder" value="..\.nuget\packages" />
</config>
</configuration>

View File

@ -10,7 +10,7 @@
#-------------------------------- References --------------------------------#
/reference:..\bin\Debug\netcoreapp2.2\MonoGame.Extended.Content.Pipeline.dll
/reference:..\..\..\.nuget\packages\monogame.extended.content.pipeline\3.8.0\tools\MonoGame.Extended.Content.Pipeline.dll
#---------------------------------- Content ---------------------------------#
#begin Json/Copy.json

View File

@ -1,12 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MonoGame.Extended.Content.Pipeline" Version="3.7.0" />
<PackageReference Include="MonoGame.Extended.Content.Pipeline" Version="3.8.0" />
</ItemGroup>
<ItemGroup>