Skip to content
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

Make compilation outputs available via a workspace service #35659

Merged
merged 2 commits into from
May 17, 2019

Conversation

tmat
Copy link
Member

@tmat tmat commented May 11, 2019

Based on discussion on #34698. Instead of exposing paths/Streams on a project this change adds a workspace service that provides data from compiler output files.

The abstraction allows for the files to be in-memory or on a different machine. In the latter case it makes it possible to only transfer relevant parts of the output files rather then their entirety.

Fixes #34371

@tmat tmat requested review from a team as code owners May 11, 2019 01:32
@tmat
Copy link
Member Author

tmat commented May 11, 2019

@jasonmalinowski PTAL at the second commit

@tmat tmat force-pushed the VBWebAppPathFix branch from 761bd0e to a7b0df6 Compare May 11, 2019 01:34
@@ -259,6 +259,15 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim

outputs = CType(environment.Workspace.GetCompilationOutputs(project.Test_VisualStudioProject.Id), CompilationOutputFilesWithImplicitPdbPath)
Assert.Equal("C:\NewFolder3\test3.dll", outputs.AssemblyFilePath)

' Relative path - set by VBIntelliProj in VB Web App project
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth doing as a separate test method since this one is a bit special?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need it to test that the previously set value is cleared (Nothing), so it's convenient to have it after the previous cases.

@tmat tmat force-pushed the VBWebAppPathFix branch from bd37d3d to 6cda714 Compare May 15, 2019 15:34
@tmat
Copy link
Member Author

tmat commented May 17, 2019

Mock insertion PR build succeeded with this change.

@tmat tmat merged commit 80e9d1b into dotnet:master May 17, 2019
@tmat tmat deleted the VBWebAppPathFix branch May 17, 2019 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make compiler parameters available from Project in Workspace layer
3 participants