-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add ReferenceOutputAssembly="false" to language server dlls we don't ship #70195
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely do a dotnet pack locally of the Language Server and verify that the binaries are still contained in the package as expected. I don't expect problems, but we've seen issues here before.
...ageServer/Microsoft.CodeAnalysis.LanguageServer/Microsoft.CodeAnalysis.LanguageServer.csproj
Show resolved
Hide resolved
@jasonmalinowski thanks for the tip. I did a |
@@ -57,7 +57,7 @@ | |||
<ProjectReference Include="..\Protocol\Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj" /> | |||
|
|||
<!-- Dlls we don't directly reference but need to include to build the MEF composition --> | |||
<ProjectReference Include="..\..\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Features.csproj" ReferenceOutputAssembly="false" /> | |||
<ProjectReference Include="..\..\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Features.csproj" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 If we omit ReferenceOutputAssembly="false"
, the comment needs to be updated. Currently there is a mismatch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I lean towards keeping the exclusion which allows us to make a conscious decision later if we think need to add references in code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I lean towards keeping the exclusion which allows us to make a conscious decision later if we think need to add references in code.
That's a good point - I've added that line back
Follow up PR per Sam's comment in #70176 (comment):