-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic NuGet package investigation #420
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard2.0;net7.0</TargetFrameworks> | ||
<Platforms>x64</Platforms> | ||
<TargetFrameworks>net40;netstandard2.0;net7.0</TargetFrameworks> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<EnableDefaultItems>false</EnableDefaultItems> | ||
|
@@ -10,6 +9,30 @@ | |
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<IsPackable>true</IsPackable> | ||
<Version>23.07</Version> | ||
<Description>Accuracy-focused XNA4 reimplementation for open platforms</Description> | ||
<Copyright>Copyright (c) 2009-2023</Copyright> | ||
<Authors>flibitijibibo</Authors> | ||
<PackageProjectUrl>https://fna-xna.github.io/</PackageProjectUrl> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PackageIcon>FNA.png</PackageIcon> | ||
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another way to use the source is using the GitHub source link: <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" /> see documentation. This does a package reference to the project though, but it's how you can point to the GitHub code directly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have been using the .NET 8 SDK, which imports SourceLink automatically. You're right, though, that the package is needed for earlier SDKs, and the GitHub Actions images probably won't have .NET 8 for a while. All There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's pretty cool! I wasn't sure if .NET 8 SDK pulled the GitHub Source Link but that does seem to be the case.
I think we can just specify the .NET 8 SDK in the GitHub Actions ( |
||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="App.config" Pack="true" PackagePath="contentFiles\FNA.dll.config" /> | ||
<None Include="README.md" Pack="true" PackagePath="\"/> | ||
<None Include="nuget\FNA.props" Pack="true" PackagePath="buildTransitive\FNA.props" /> | ||
<None Include="nuget\FNA.png" Pack="true" PackagePath="\"/> | ||
<None Include="nuget\NuGetLicense.txt" Pack="true" PackagePath="\LICENSE.txt"/> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<FNASettingsPropsFilePath>$(SolutionDir)FNA.Settings.props</FNASettingsPropsFilePath> | ||
</PropertyGroup> | ||
|
@@ -367,4 +390,21 @@ | |
<LogicalName>Microsoft.Xna.Framework.Graphics.Effect.Resources.YUVToRGBAEffect.fxb</LogicalName> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<Target Name="DownloadExpandAndPackFNALibs" BeforeTargets="DispatchToInnerBuilds" Condition="'$(PackFNALibs)' == true"> | ||
<PropertyGroup> | ||
<FNALibsRoot>$(BaseIntermediateOutputPath)fnalibs\</FNALibsRoot> | ||
</PropertyGroup> | ||
<DownloadFile SourceUrl="https://fna.flibitijibibo.com/archive/fnalibs.tar.bz2" DestinationFolder="$(BaseIntermediateOutputPath)"> | ||
<Output TaskParameter="DownloadedFile" PropertyName="FNALibsArchive" /> | ||
</DownloadFile> | ||
<MakeDir Directories="$(FNALibsRoot)" /> | ||
<Exec Command="bsdtar -xjf $(FNALibsArchive) -C $(FNALibsRoot)" /> | ||
<ItemGroup> | ||
<None Include="$(FNALibsRoot)x64\*.*" Pack="true" PackagePath="runtimes\win-x64\native" /> | ||
<None Include="$(FNALibsRoot)x86\*.*" Pack="true" PackagePath="runtimes\win-x86\native" /> | ||
<None Include="$(FNALibsRoot)osx\*.*" Pack="true" PackagePath="runtimes\osx-x64\native" /> | ||
<None Include="$(FNALibsRoot)lib64\*.*" Pack="true" PackagePath="runtimes\linux-x64\native" /> | ||
<None Include="$(FNALibsRoot)libaarch64\*.*" Pack="true" PackagePath="runtimes\linux-arm64\native" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
This is FNA, an XNA4 reimplementation that focuses solely on developing a fully | ||
accurate XNA4 runtime for the desktop. | ||
|
||
Project Website: https://fna-xna.github.io/ | ||
|
||
License | ||
------- | ||
FNA is released under the Microsoft Public License. See LICENSE for details. | ||
|
||
FNA uses LzxDecoder.cs, released under a dual MSPL/LGPL license. | ||
See lzxdecoder.LICENSE for details. | ||
|
||
FNA uses code from the Mono.Xna project, released under the MIT license. | ||
See monoxna.LICENSE for details. | ||
Project Website: <https://fna-xna.github.io/> | ||
|
||
Documentation | ||
------------- | ||
Documentation for FNA can be found on the FNA wiki: | ||
|
||
https://github.com/FNA-XNA/FNA/wiki | ||
<https://github.com/FNA-XNA/FNA/wiki> | ||
|
||
Found an issue? | ||
--------------- | ||
Issues and patches can be reported via GitHub: | ||
|
||
https://github.com/FNA-XNA/FNA/issues | ||
<https://github.com/FNA-XNA/FNA/issues> | ||
|
||
License | ||
------- | ||
FNA is released under the Microsoft Public License. See LICENSE for details. | ||
|
||
FNA uses LzxDecoder.cs, released under a dual MSPL/LGPL license. | ||
See lzxdecoder.LICENSE for details. | ||
|
||
FNA uses code from the Mono.Xna project, released under the MIT license. | ||
See monoxna.LICENSE for details. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)..\contentFiles\FNA.dll.config" Condition="'$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe'"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>false</Visible> | ||
<TargetPath>%(Filename)%(Extension)</TargetPath> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FNA is released under the Microsoft Public License. | ||
|
||
FNA uses LzxDecoder.cs, released under a dual MSPL/LGPL license. | ||
|
||
FNA uses code from the Mono.Xna project, released under the MIT license. | ||
|
||
Full license information can be found at https://fna-xna.github.io/license/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will break due to the reasons listed here: #355 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work fine for me... maybe it was a fluke? SDL2# is set up the same way https://github.com/flibitijibibo/SDL2-CS/blob/master/SDL2-CS.Core.csproj#L3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flibitijibibo Is there any way to repro the issue you saw? I'd be curious to follow up the root cause issue of this