Repository navigation
Conversation
huulinhnguyen-dev
marked this pull request as ready for review
August 15, 2025 03:29
JanProvaznik
requested changes
Aug 21, 2025
JanProvaznik
left a comment
Member
There was a problem hiding this comment.
Please don't commit the package dlls and xml files to the repo... This would increase maintenace burden and potentially cause security flagging in the future.
huulinhnguyen-dev
marked this pull request as draft
August 21, 2025 08:51
huulinhnguyen-dev
marked this pull request as ready for review
September 19, 2025 14:17
SimaTian
approved these changes
Sep 24, 2025
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.
Fixes #
Fix the issue: Suppress CS1701 and CS1702 warnings by default in
RoslynCodeTaskFactoryto align with .NET SDK #12101Context
When using
RoslynCodeTaskFactory, MSBuild emits CS1701 and CS1702 assembly binding warnings for version mismatches (e.g., betweenSystem.MemoryandSystem.Text.Json). These warnings are not actionable in modern .NET scenarios and are already suppressed by default in the .NET SDK and Roslyn. This issue causes unnecessary warning noise and confusion in custom task or non-SDK builds.Changes Made
Added a new property in the task factory configuration to include
NoWarn="1701;1702"for all tasks generated byRoslynCodeTaskFactoryTesting
Added a new unit test
RoslynCodeTaskFactoryWithoutCS1702Warningin the MSBuild test suite to verify that no CS1702 warnings are emitted when usingRoslynCodeTaskFactorywith references toSystem.Memory(v4.6.3) andSystem.Text.Json(v9.0.7).Create a project file base on example of user for test dotnet/roslyn#19640 (comment)
Notes