Skip to content

Conversation

dibarbet
Copy link
Member

@dibarbet dibarbet commented May 14, 2024

Previously the build output of the project only had the single devkit dll (and none of its required runtime dependencies, like VS telemetry).

This made it hard to test local changes in VSCode - we would have to first run pack on the project (to pull in the dependencies), then unpack the nuget content to a folder and point VSCode to look in that folder for the devkit component.

Now since we include the additional runtime dependencies in the build output, its very easy to test local changes - just point VSCode to the build output directory (which has the updated devkit dll and updated runtime dependencies).

@dibarbet dibarbet requested a review from a team as a code owner May 14, 2024 00:36
@ghost ghost added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels May 14, 2024
@dibarbet dibarbet force-pushed the add_runtime_deps_build_output branch from ff713a8 to a5a1a5c Compare May 14, 2024 00:36
@dibarbet dibarbet requested review from ToddGrun and tmat May 14, 2024 00:39
<Content Include="$(PkgSystem_Configuration_ConfigurationManager)\lib\netstandard2.0\System.Configuration.ConfigurationManager.dll" Pack="true" PackagePath="content" />
<Content Include="$(PkgMicrosoft_VisualStudio_Debugger_Contracts)\lib\netstandard2.0\Microsoft.VisualStudio.Debugger.Contracts.dll" Pack="true" PackagePath="content" />
<Content Include="$(TargetPath)" Pack="true" PackagePath="content" />
<Content Include="$(PkgMicrosoft_VisualStudio_Telemetry)\lib\netstandard2.0\Microsoft.VisualStudio.Telemetry.dll" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should move these Content items out of the target (directly to the project).
Then the target can just return all Content items that have "Pack=true". Or perhaps NuGet would include them automatically and we might not need the target at all?

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 can try that but I'm not sure if the PkgXYZ variables are defined when the content items get evaluated. Will check.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok - that mostly worked. I don't need the target to build and pack the devkit project. But I do need a target to access the content in the LanguageServer.UnitTests project (just calling the build target doesn't get the all the copied items).

@dibarbet dibarbet force-pushed the add_runtime_deps_build_output branch 2 times, most recently from 9b91749 to 2d228d7 Compare May 16, 2024 01:19
@dibarbet dibarbet requested a review from tmat May 16, 2024 01:21
<Content Include="$(PkgSystem_Configuration_ConfigurationManager)\lib\netstandard2.0\System.Configuration.ConfigurationManager.dll" Pack="true" PackagePath="content" />
<Content Include="$(PkgMicrosoft_VisualStudio_Debugger_Contracts)\lib\netstandard2.0\Microsoft.VisualStudio.Debugger.Contracts.dll" Pack="true" PackagePath="content" />
<Content Include="$(TargetPath)" Pack="true" PackagePath="content" />
<_Content Include="@(Content)" />
Copy link
Member

Choose a reason for hiding this comment

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

Should we only include items such that %(Content.Pack) == "true"?

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@dibarbet dibarbet force-pushed the add_runtime_deps_build_output branch from 2d228d7 to 4a88942 Compare May 16, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants