Skip to content

Commit

Permalink
Correctness fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Mikhailov committed Jul 18, 2023
1 parent 3740416 commit 10a6d5d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
6 changes: 2 additions & 4 deletions src/Bannerlord.Module.CSharp/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
"type": "parameter",
"datatype": "bool",
"description": "Target the Steam/GOG/Epic version of the game",
"defaultValue": "true",
"replaces": "$(ProjectBuildForWindows)"
"defaultValue": "true"
},
"gameWindowsStore": {
"type": "parameter",
"datatype": "bool",
"description": "Target the Windows Game Pass PC version of the game",
"defaultValue": "true",
"replaces": "$(ProjectBuildForWindowsStore)"
"defaultValue": "true"
},

"gameFolder": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bannerlord.Module.CSharp/BLNamespace.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<Platforms>x64</Platforms>
<LangVersion Condition="'$(langVersion)' != ''">$(ProjectLanguageVersion)</LangVersion>
<Nullable Condition="'$(nullable)' != ''">enable</Nullable>
<BuildForWindows>$(ProjectBuildForWindows)</BuildForWindows>
<BuildForWindowsStore>$(ProjectBuildForWindowsStore)</BuildForWindowsStore>
<BuildForWindows>false</BuildForWindows>
<BuildForWindowsStore>false</BuildForWindowsStore>
<ModuleId>$(ProjectModuleId)</ModuleId>
<ModuleName>$(ProjectModuleName)</ModuleName>
<ModuleUrl>$(ProjectModuleUrl)</ModuleUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
"type": "parameter",
"datatype": "bool",
"description": "Target the Steam/GOG/Epic version of the game",
"defaultValue": "true",
"replaces": "$(ProjectBuildForWindows)"
"defaultValue": "true"
},
"gameWindowsStore": {
"type": "parameter",
"datatype": "bool",
"description": "Target the Windows Game Pass PC version of the game",
"defaultValue": "true",
"replaces": "$(ProjectBuildForWindowsStore)"
"defaultValue": "true"
},

"gameFolder": {
Expand Down
8 changes: 4 additions & 4 deletions src/Bannerlord.Module.Sdk.CSharp/BLNamespace.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
<LangVersion Condition="'$(langVersion)' != ''">$(ProjectLanguageVersion)</LangVersion>
<Nullable Condition="'$(nullable)' != ''">enable</Nullable>

<!-- Steam/GOG/Epic versions of the game -->
<BuildForWindows>$(ProjectBuildForWindows)</BuildForWindows>
<!-- Xbox Game Pass PC version of the game -->
<BuildForWindowsStore>$(ProjectBuildForWindowsStore)</BuildForWindowsStore>
<BuildForWindows>false</BuildForWindows>
<BuildForWindowsStore>false</BuildForWindowsStore>

<ModuleId>$(ProjectModuleId)</ModuleId>
<ModuleName>$(ProjectModuleName)</ModuleName>
Expand All @@ -28,11 +26,13 @@

<!--#if (gameWindows) -->
<PropertyGroup Condition="$(TargetFramework) == 'net472'">
<!-- Steam/GOG/Epic versions of the game -->
<BuildForWindows>true</BuildForWindows>
</PropertyGroup>
<!--#endif -->
<!--#if (gameWindowsStore) -->
<PropertyGroup Condition="$(TargetFramework) == 'netcoreapp3.1'">
<!-- Xbox Game Pass PC version of the game -->
<BuildForWindowsStore>false</BuildForWindowsStore>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
Expand Down

0 comments on commit 10a6d5d

Please sign in to comment.