-
Notifications
You must be signed in to change notification settings - Fork 838
Implement test-only Visual Studio installation discovery infrastructure #18906
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
Co-authored-by: T-Gro <[email protected]>
Co-authored-by: T-Gro <[email protected]>
…TALL_DIR, add VS180COMNTOOLS support Co-authored-by: T-Gro <[email protected]>
✅ No release notes required |
Co-authored-by: T-Gro <[email protected]>
Co-authored-by: T-Gro <[email protected]>
❌ Build / Test Failures💥 Issues
🏗️ Jobs
🧪 Tests (0)
|
Co-authored-by: T-Gro <[email protected]>
❌ Build / Test Failures💥 Issues
🏗️ Jobs
🧪 Tests (0)
|
…conflicts Co-authored-by: T-Gro <[email protected]>
Fixed Microsoft.CodeAnalysis version conflict in commit 2e17a06: MSB3277 version conflict: Reverted Salsa project changes (VsMocks.fs and VisualFSharp.Salsa.fsproj) to avoid dependency conflicts. The Salsa project has incompatible Microsoft.CodeAnalysis dependencies with FSharp.Test.Utilities, so it keeps its original inline VS discovery implementation. The centralized VSInstallDiscovery module is now used by UnitTests and FSharp.Editor.Tests projects only. Salsa retains its original implementation to avoid breaking the build. |
Co-authored-by: T-Gro <[email protected]>
tests/FSharp.Test.Utilities/VSInstallDiscovery.fsFSHARP_VS_INSTALL_DIRenvironment variable and all references to ittestEnvironmentVariablesfunction (marked as useless)tryVSCommonToolsFSharp.Test.VSInstallDiscoveryinstead ofFSharp.Test.Utilities.VSInstallDiscoveryBuild Fixes Applied
Fixed namespace conflict: Changed module declaration from
FSharp.Test.Utilities.VSInstallDiscoverytoFSharp.Test.VSInstallDiscoveryto avoid conflict with existingUtilitiesmodule in Utilities.fs.Fixed formatting: Applied fantomas formatting to all modified files to resolve code formatting issues.
Fixed indentation syntax errors: Properly indented all content within the
VSInstallDiscoverymodule to resolve FS0010 "Incomplete structured construct" and FS0058 "Unexpected syntax or possible incorrect indentation" errors.Fixed FS1204 compiler error: Removed the
[<CompilerMessage("This module is for test code only", 1204, IsHidden=true)>]attribute that was causing compilation errors in test projects.Fixed Microsoft.CodeAnalysis version conflicts: Reverted changes to Salsa project (VsMocks.fs and VisualFSharp.Salsa.fsproj) to avoid dependency conflicts. The Salsa project has incompatible dependencies with FSharp.Test.Utilities due to different Microsoft.CodeAnalysis versions, so it keeps its original inline VS discovery implementation.
Reduced package references: Aligned Salsa project package references with main branch, removing 11 unnecessary packages that were inadvertently added:
Updated references: Two assembly resolver files (UnitTests and FSharp.Editor.Tests) now correctly reference
FSharp.Test.VSInstallDiscoverymodule. Salsa remains unchanged to avoid dependency issues.The implementation addresses all build failures:
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.