Skip to content

Commit

Permalink
Fix NuGet private feed packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Qonfused committed Dec 27, 2023
1 parent 809f2c8 commit 5fdfc90
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 13 deletions.
3 changes: 2 additions & 1 deletion MTGOSDK.Win32/MTGOSDK.Win32.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>Latest</LangVersion>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

</Project>
</Project>
11 changes: 6 additions & 5 deletions MTGOSDK/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"System.Reflection.Emit": "4.7.0"
}
},
"Newtonsoft.Json": {
"type": "Direct",
"requested": "[13.0.3, )",
"resolved": "13.0.3",
"contentHash": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ=="
},
"Dynamitey": {
"type": "Transitive",
"resolved": "3.0.3",
Expand Down Expand Up @@ -124,11 +130,6 @@
"resolved": "1.1.0",
"contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg=="
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "13.0.3",
"contentHash": "HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "6.0.0",
Expand Down
1 change: 1 addition & 0 deletions examples/BasicBot/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"dependencies": {
"ImpromptuInterface": "[8.0.4, )",
"MTGOSDK.Win32": "[1.0.0, )",
"Newtonsoft.Json": "[13.0.3, )",
"RemoteNET": "[1.0.0, )",
"ScubaDiver.API": "[1.0.0, )"
}
Expand Down
1 change: 1 addition & 0 deletions examples/BasicInjector/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"dependencies": {
"ImpromptuInterface": "[8.0.4, )",
"MTGOSDK.Win32": "[1.0.0, )",
"Newtonsoft.Json": "[13.0.3, )",
"RemoteNET": "[1.0.0, )",
"ScubaDiver.API": "[1.0.0, )"
}
Expand Down
1 change: 1 addition & 0 deletions examples/GameTracker/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"dependencies": {
"ImpromptuInterface": "[8.0.4, )",
"MTGOSDK.Win32": "[1.0.0, )",
"Newtonsoft.Json": "[13.0.3, )",
"RemoteNET": "[1.0.0, )",
"ScubaDiver.API": "[1.0.0, )"
}
Expand Down
10 changes: 9 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ trap 'exit $?' 1 2 3 15

curl.exe -sSL -k "$NUGET_URL" > "$NUGET_PATH"

$NUGET_PATH add MTGOSDK/bin/Release/MTGOSDK.*.nupkg -source "$PACKAGE_DIR"
#
# Projects have to be bundled explicitly for packaging due to a bug with
# NuGet that expects project references to be published separately.
# Tracking issue: https://github.com/NuGet/Home/issues/3891
#
$NUGET_PATH add MTGOSDK/bin/Release/*.nupkg -source "$PACKAGE_DIR"
$NUGET_PATH add MTGOSDK.Win32/bin/Release/*.nupkg -source "$PACKAGE_DIR"
$NUGET_PATH add third_party/RemoteNET/src/RemoteNET/bin/Release/*.nupkg -source "$PACKAGE_DIR"
$NUGET_PATH add third_party/RemoteNET/src/ScubaDiver.API/bin/Release/*.nupkg -source "$PACKAGE_DIR"
4 changes: 2 additions & 2 deletions third_party/RemoteNET/src/RemoteNET/RemoteNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>Latest</LangVersion>
<IsPackable>false</IsPackable>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -66,4 +66,4 @@
<Exec Command="powershell &quot;Get-ChildItem -Path '$(ProjectDir)\Resources' | Set-Content -Value 'dummy'&quot;" />
</Target>

</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>1701;1702;8600;8602;8603;8618;8625</NoWarn>
<IsPackable>false</IsPackable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand All @@ -15,4 +15,4 @@
Version="13.0.3" />
</ItemGroup>

</Project>
</Project>
3 changes: 1 addition & 2 deletions third_party/RemoteNET/src/ScubaDiver/ScubaDiver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
</PropertyGroup>

<!-- Compiler Options -->
<!-- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> -->
<PropertyGroup>
<Deterministic>true</Deterministic>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -79,4 +78,4 @@
<Exec Command="xcopy /Y &quot;$(TargetDir)\Microsoft.Diagnostics.Runtime.dll&quot; &quot;$(SolutionDir)dist\$(ConfigurationName)\Microsoft.Diagnostics.Runtime.dll*&quot;" />
</Target>

</Project>
</Project>

0 comments on commit 5fdfc90

Please sign in to comment.