-
Notifications
You must be signed in to change notification settings - Fork 832
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
base: main
Are you sure you want to change the base?
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]>
Fixed both build errors in commit 86ec73c: FS1204 "This module is for test code only": Removed the FS0039 "namespace or type 'Test' is not defined": Added missing Both test projects can now properly compile and access the centralized VS installation discovery functionality. |
❌ 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.fs
FSHARP_VS_INSTALL_DIR
environment variable and all references to ittestEnvironmentVariables
function (marked as useless)tryVSCommonTools
FSharp.Test.VSInstallDiscovery
instead ofFSharp.Test.Utilities.VSInstallDiscovery
Build Fixes Applied
Fixed namespace conflict: Changed module declaration from
FSharp.Test.Utilities.VSInstallDiscovery
toFSharp.Test.VSInstallDiscovery
to avoid conflict with existingUtilities
module 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
VSInstallDiscovery
module 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.VSInstallDiscovery
module. 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.