Browse Source

fixed build paths

vpenades 2 years ago
parent
commit
dc8ba13dbf
3 changed files with 13 additions and 10 deletions
  1. 7 4
      src/Directory.Build.props
  2. 2 2
      src/build-alpha.cmd
  3. 4 4
      src/build-preview.cmd

+ 7 - 4
src/Directory.Build.props

@@ -5,7 +5,7 @@
 
   <PropertyGroup>
     <Authors>Vicente Penades</Authors>    
-    <Copyright>Copyright (c) 2023 Vicente Penades</Copyright>
+    <Copyright>Copyright (c) $([System.DateTime]::Now.ToString(`yyyy`)) Vicente Penades</Copyright>
     <Description>SharpGLTF is a C# library for reading and writing glTF2 3D models</Description>    
   </PropertyGroup>  
 
@@ -16,11 +16,14 @@
     <IsPackable>true</IsPackable>
   </PropertyGroup>
 
-  <PropertyGroup>
+  <PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
     <IsTrimmable>true</IsTrimmable>
-    <EnableTrimAnalyzer>true</EnableTrimAnalyzer>
   </PropertyGroup>
-  
+
+  <PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
+    <IsAotCompatible>true</IsAotCompatible>
+  </PropertyGroup>
+
   <!-- Testing & Analysers =================================================================================== -->
 
   <ItemGroup Condition=" '$(Configuration)' == 'Debug' ">

+ 2 - 2
src/build-alpha.cmd

@@ -7,7 +7,7 @@ dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Core\SharpGLT
 dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Runtime\SharpGLTF.Runtime.csproj
 dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Toolkit\SharpGLTF.Toolkit.csproj
 
-dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Agi\SharpGLTF.Agi.csproj
-dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Cesium\SharpGLTF.Cesium.csproj
+dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Ext.Agi\SharpGLTF.Ext.Agi.csproj
+dotnet build -c:Release --version-suffix %VERSIONSUFFIX% SharpGLTF.Ext.3DTiles\SharpGLTF.Ext.3DTiles.csproj
 
 pause

+ 4 - 4
src/build-preview.cmd

@@ -11,8 +11,8 @@ dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades Sha
 dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades SharpGLTF.Runtime\SharpGLTF.Runtime.csproj
 dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades SharpGLTF.Toolkit\SharpGLTF.Toolkit.csproj
 
-dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades SharpGLTF.Agi\SharpGLTF.Agi.csproj
-dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades SharpGLTF.Cesium\SharpGLTF.Cesium.csproj
+dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades SharpGLTF.Ext.Agi\SharpGLTF.Ext.Agi.csproj
+dotnet build -c:Release --version-suffix %VERSIONSUFFIX% /p:Authors=vpenades SharpGLTF.Ext.3DTiles\SharpGLTF.Ext.3DTiles.csproj
 
 set /p DUMMY=Hit ENTER to publish nuget packages on Github...
 
@@ -20,7 +20,7 @@ dotnet nuget push "SharpGLTF.Core/bin/Release/SharpGLTF.Core.1.0.0-%VERSIONSUFFI
 dotnet nuget push "SharpGLTF.Runtime/bin/Release/SharpGLTF.Runtime.1.0.0-%VERSIONSUFFIX%.nupkg" -s "github" --force-english-output
 dotnet nuget push "SharpGLTF.Toolkit/bin/Release/SharpGLTF.Toolkit.1.0.0-%VERSIONSUFFIX%.nupkg" -s "github" --force-english-output
 
-dotnet nuget push "SharpGLTF.Agi/bin/Release/SharpGLTF.Agi.1.0.0-%VERSIONSUFFIX%.nupkg" -s "github" --force-english-output
-dotnet nuget push "SharpGLTF.Cesium/bin/Release/SharpGLTF.Cesium.1.0.0-%VERSIONSUFFIX%.nupkg" -s "github" --force-english-output
+dotnet nuget push "SharpGLTF.Agi/bin/Release/SharpGLTF.Ext.Agi.1.0.0-%VERSIONSUFFIX%.nupkg" -s "github" --force-english-output
+dotnet nuget push "SharpGLTF.Cesium/bin/Release/SharpGLTF.Ext.3DTiles.1.0.0-%VERSIONSUFFIX%.nupkg" -s "github" --force-english-output
 
 pause