-
-
Notifications
You must be signed in to change notification settings - Fork 11
Generalise local and CI build experiences #76
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
Conversation
|
@maraf, this is a result of few late-night sessions, could you please verify that I haven't missed anything? Thank you. |
| <NoWarn>$(NoWarn);1573;1591;1712</NoWarn> | ||
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
| <SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage> | ||
| <PackageManagerUIRuntimeIdentifier>win-x86</PackageManagerUIRuntimeIdentifier> |
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.
Is there a reason we can't target win-x64?
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 wasn't able to blame anything and don't have any recollection 🤷♂️
maraf
left a 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.
Locally I'm getting a lot of NU1604 errors
D:\Development\GitExtensions\gitextensions.pluginmanager\src\PackageManager.UI\PackageManager.UI.csproj error NU1604: Warning As Error: Project dependency Neptuo.Exceptions does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results. [D:\Development\GitExtens
ions\gitextensions.pluginmanager\GitExtensions.PluginManager.sln]
Did you PS D:\Development\gitextensions.pluginmanager> git clean -xdf
PS D:\Development\gitextensions.pluginmanager> dotnet restore
Determining projects to restore...
Restored D:\Development\gitextensions.pluginmanager\src\PackageManager\PackageManager.csproj (in 297 ms).
Restored D:\Development\gitextensions.pluginmanager\test\PackageManager.Tests\PackageManager.Tests.csproj (in 451 ms).
Restored D:\Development\gitextensions.pluginmanager\src\PackageManager.NuGet\PackageManager.NuGet.csproj (in 453 ms).
Restored D:\Development\gitextensions.pluginmanager\src\PackageManager.Cli\PackageManager.Cli.csproj (in 453 ms).
Restored D:\Development\gitextensions.pluginmanager\test\PackageManager.NuGet.Tests\PackageManager.NuGet.Tests.csproj (in 453 ms).
Restored D:\Development\gitextensions.pluginmanager\src\PackageManager.UI\PackageManager.UI.csproj (in 466 ms).
Restored D:\Development\gitextensions.pluginmanager\src\GitExtensions.PluginManager\GitExtensions.PluginManager.csproj (in 1.07 sec).
PS D:\Development\gitextensions.pluginmanager> dotnet build
Determining projects to restore...
All projects are up-to-date for restore.
PackageManager -> D:\Development\gitextensions.pluginmanager\src\PackageManager\bin\Debug\net8.0-windows\PackageManager.dll
PackageManager.NuGet -> D:\Development\gitextensions.pluginmanager\src\PackageManager.NuGet\bin\Debug\net8.0-windows\PackageManager.NuGet.dll
PackageManager.Tests -> D:\Development\gitextensions.pluginmanager\test\PackageManager.Tests\bin\Debug\net8.0-windows\PackageManager.Tests.dll
PackageManager.Cli -> D:\Development\gitextensions.pluginmanager\src\PackageManager.Cli\bin\Debug\net8.0-windows\PackageManager.Cli.dll
PackageManager.NuGet.Tests -> D:\Development\gitextensions.pluginmanager\test\PackageManager.NuGet.Tests\bin\Debug\net8.0-windows\PackageManager.NuGet.Tests.dll
PackageManager.UI -> D:\Development\gitextensions.pluginmanager\src\PackageManager.UI\bin\Debug\net8.0-windows\win-x86\PackageManager.UI.dll
GitExtensions.PluginManager -> D:\Development\gitextensions.pluginmanager\src\GitExtensions.PluginManager\bin\Debug\net8.0-windows\GitExtensions.PluginManager.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:04.94 |
The app can be build with "dotnet" without custom scripts. Packaging and publishing moved into MSBuild targets.
Yes, I did. The thing happens when I did a fresh clone in a different location PS D:\Development\GitExtensions\gitextensions.pluginmanager> git clean -xfd
Removing artifacts/
Removing src/GitExtensions.PluginManager/bin/
Removing src/GitExtensions.PluginManager/obj/
Removing src/PackageManager.Cli/bin/
Removing src/PackageManager.Cli/obj/
Removing src/PackageManager.NuGet/bin/
Removing src/PackageManager.NuGet/obj/
Removing src/PackageManager.UI/bin/
Removing src/PackageManager.UI/obj/
Removing src/PackageManager/bin/
Removing src/PackageManager/obj/
Removing test/PackageManager.NuGet.Tests/bin/
Removing test/PackageManager.NuGet.Tests/obj/
Removing test/PackageManager.Tests/bin/
Removing test/PackageManager.Tests/obj/
PS D:\Development\GitExtensions\gitextensions.pluginmanager> dotnet restore
Determining projects to restore...
D:\Development\GitExtensions\gitextensions.pluginmanager\src\GitExtensions.PluginManager\GitExtensions.PluginManager.csproj : error NU1604:
Warning As Error: Project dependency GitExtensions.Extensibility does not contain an inclusive lower bound. Include a lower bound in the d
ependency version to ensure consistent restore results. [D:\Development\GitExtensions\gitextensions.pluginmanager\GitExtensions.PluginManag
er.sln] |
I just tried it on a different workstation, and the same result as previously - no warnings: What's .NET SDK do you have installed? I'm on: |
Previously had 8.0.202. Same results EDIT: Okay, works on my other machine |
I tried building Git Extensions with the latest build, and Git Extensions failed: |



The app can be build with "dotnet" without custom scripts.
Packaging and publishing moved into MSBuild targets.