Skip to content

Commit

Permalink
Add LangVersion:4 to project files
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Oct 16, 2024
1 parent 1bfdc8c commit a14f9d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions FNA.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<RootNamespace>Microsoft.Xna.Framework</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<LangVersion>4</LangVersion>
</PropertyGroup>
<PropertyGroup>
<FNASettingsPropsFilePath>$(SolutionDir)FNA.Settings.props</FNASettingsPropsFilePath>
Expand Down
1 change: 1 addition & 0 deletions FNA.NetFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<RootNamespace>Microsoft.Xna.Framework</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<LangVersion>4</LangVersion>
</PropertyGroup>
<PropertyGroup>
<FNASettingsPropsFilePath>$(SolutionDir)FNA.Settings.props</FNASettingsPropsFilePath>
Expand Down
1 change: 1 addition & 0 deletions FNA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Microsoft.Xna.Framework</RootNamespace>
<AssemblyName>FNA</AssemblyName>
<LangVersion>4</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>True</DebugSymbols>
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -342,15 +342,15 @@ RES = \
debug: clean-debug
mkdir -p bin/Debug
cp app.config bin/Debug/FNA.dll.config
mcs /unsafe -debug -define:DEBUG -out:bin/Debug/FNA.dll -target:library $(SRC) $(RES)
mcs /unsafe /langversion:4 -debug -define:DEBUG -out:bin/Debug/FNA.dll -target:library $(SRC) $(RES)

clean-debug:
rm -rf bin/Debug

release: clean-release
mkdir -p bin/Release
cp app.config bin/Release/FNA.dll.config
mcs /unsafe -optimize -out:bin/Release/FNA.dll -target:library $(SRC) $(RES)
mcs /unsafe /langversion:4 -optimize -out:bin/Release/FNA.dll -target:library $(SRC) $(RES)

clean-release:
rm -rf bin/Release
Expand Down

0 comments on commit a14f9d4

Please sign in to comment.