-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NetStandard' of https://github.com/vchelaru/FlatRedBall …
…into NetStandard
- Loading branch information
Showing
13 changed files
with
167 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 20 additions & 8 deletions
28
Engines/FlatRedBallXNA/FlatRedBall.FNA/FlatRedBall.FNA.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,35 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<DefineConstants>TRACE; DESKTOP_GL; XNA4; FRB_XNA; FNA;</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<Title>FlatRedBall (.NET FNA)</Title> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Description>FlatRedBall Game Engine</Description> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<Version>1.0.1</Version> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<Version>1.0.0</Version> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\3rd Party Libraries\FNA\FNA.Core.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\3rd Party Libraries\FNA\FNA.Core.csproj"> | ||
<ReferenceOutputAssembly>true</ReferenceOutputAssembly> | ||
<IncludeAssets>FNA.Core.dll</IncludeAssets> | ||
</ProjectReference> | ||
</ItemGroup> | ||
|
||
<Import Project="..\FlatRedBall\FlatRedBallShared.projitems" Label="Shared" /> | ||
<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage"> | ||
<ItemGroup> | ||
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))"/> | ||
</ItemGroup> | ||
</Target> | ||
|
||
|
||
<PropertyGroup> | ||
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
|
||
<Import Project="..\FlatRedBall\FlatRedBallShared.projitems" Label="Shared" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/InjectFnaNugetAndVersion.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace BuildServerUploaderConsole.Processes | ||
{ | ||
internal class InjectFnaNugetAndVersion : ProcessStep | ||
{ | ||
public InjectFnaNugetAndVersion(IResults results) : base("Injects the FNA NuGet package and updates the version number.", results) | ||
{ | ||
} | ||
|
||
public override void ExecuteStep() | ||
{ | ||
var csprojLocation = | ||
Path.Combine(DirectoryHelper.CheckoutDirectory, @"FlatRedBall\Engines\FlatRedBallXNA\3rd Party Libraries\FNA\FNA.Core.csproj"); | ||
|
||
var contents = File.ReadAllText(csprojLocation); | ||
|
||
var index = contents.IndexOf("</PropertyGroup>"); | ||
|
||
var whatToInject = $@" | ||
<PackageId>FNA_for_FlatRedBall</PackageId> | ||
<Title>FNA (for FlatRedBall.FNA)</Title> | ||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
<Description>FNA Core Nuget package created for FlatRedBall. This is NOT an official NuGet package from the FNA team, although you are free to use it in any FNA project.</Description> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<Version>{UpdateAssemblyVersions.VersionString}</Version> | ||
"; | ||
|
||
contents = contents.Insert(index, whatToInject); | ||
|
||
File.WriteAllText(csprojLocation, contents); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters