Skip to content

Conversation

@huulinhnguyen-dev
Copy link
Contributor

@huulinhnguyen-dev huulinhnguyen-dev commented Jan 23, 2026

Fixes #12063

Context

The FileTrackerTests.cs contains tests that depend on Microsoft.CodeAnalysis.BuildTasks.Csc from the discontinued Microsoft.CodeAnalysis.Build.Tasks NuGet package. This blocks the code from compiling when the ENABLE_TRACKER_TESTS flag is enabled.

Changes Made

  • Added Microsoft.CodeAnalysis.CSharp package reference
  • Created CompileCSharpExecutable() helper method using Roslyn API
  • Replaced all Csc task usages with the new helper method
  • Removed #if ENABLE_TRACKER_TESTS

Testing

  • Added CompileCSharpExecutable_CompilesSimpleProgram test to verify the helper method works correctly

Notes

The existing tests are still skipped due to issue #649 (missing Tracker.exe), which is a separate issue from this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Csc task usage in the FileTrackerTests.cs

1 participant