Fix solution and project references for cross-platform builds#2
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Fix solution and project references for cross-platform builds#2devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Convert backslash paths to forward slashes in Microservices.sln - Fix Shared project references in all API .csproj files (../../ -> ../../../) - Add missing ProjectConfigurationPlatforms section to .sln - Update global.json to allow prerelease SDK versions
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The solution could not build on Linux (and likely macOS) due to three independent issues:
Microservices.slnused Windows backslash paths —dotneton Linux silently failed to locate any projects, causingdotnet buildon the.slnto report success while building nothing.Shared project references were wrong — All 5 API
.csprojfiles referenced..\..\Shared\...but fromServices/X/X.API/, two levels up isServices/, notsrc/. The correct path is../../../Shared/.... This causedShared.ContractsandShared.Infrastructureto be silently missing (compile errors inNotification.APIwhich depends onOrderPlacedEventfromShared.Contracts).Missing
ProjectConfigurationPlatformsin.sln— Without this section,dotnet build Microservices.slndiscovers zero projects to build. Added Debug/Release mappings for all 18 projects.global.jsonupdated to allow the .NET 10 preview SDK (allowPrerelease: true).Review & Testing Checklist for Human
global.jsonpins to a specific RC version (10.0.100-rc.2.25502.107) — this will likely need updating when .NET 10 GA ships. Consider whether"version": "10.0.100"with just"allowPrerelease": trueadded would be more future-proof..slnand.csprojshould work, but worth confirming since the originals used backslashes.ProjectConfigurationPlatformsGUIDs — these were hand-written to match the project GUIDs already in the.sln. Verify no project was missed or duplicated.dotnet build src/Microservices.slnand confirm all 18 projects compile with 0 errors.Notes
dotnet testcompletes with no tests to run..slnforward-slash convention is supported by MSBuild on all platforms; this is not a Linux-only workaround.Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/c962c62bbe62463e8808eb5b3426ba93