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

Add .vsconfig file #3575

Closed
wants to merge 2 commits into from
Closed

Add .vsconfig file #3575

wants to merge 2 commits into from

Conversation

Rosuavio
Copy link
Contributor

Fixes #3547

Adds .vsconfig file. This is based on a fairly clean system that successfully builds and tests the solution through the build script.

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

When opening the solution in Visual Studio there is no prompt to install missing build dependencies.

What is the new behavior?

Visual Studio now prompts users to install any missing dependencies when they open the solution in visual studio.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

@ghost
Copy link

ghost commented Nov 24, 2020

Thanks RosarioPulella for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost requested review from michael-hawker, azchohfi and Kyaa-dost November 24, 2020 01:37
@ghost ghost added the improvements ✨ label Nov 24, 2020
@Rosuavio
Copy link
Contributor Author

Rosuavio commented Nov 24, 2020

I might be able to trim this down more. I have to go through a cycle of uninstalling components and testing if everything works as expected. If there are any items that anyone knows of that either might not be needed or is not needed feel free to let me know and I will test it locally or test it yourself.

Comment on lines +6 to +7
"Microsoft.NetCore.Component.Runtime.5.0",
"Microsoft.NetCore.Component.Runtime.3.1",
Copy link
Member

Choose a reason for hiding this comment

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

I think we need both of these runtimes, eh? @Sergio0694 @azchohfi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was playing around with trying to install and uninstall particular components...
The UWP Workload seems to require both those components.
image

ref

Copy link
Member

Choose a reason for hiding this comment

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

I was also playing around with creating a solution filter for the .NET Standard projects only, to make life easier for contributors that might only want to contribute to them (for instance, people that are on a Mac or on Linux). Would it make sense to do both things in this PR since it is about a closely related matter? Also about this, should we offer two separate .vsconfig files, one of which only targeting the cross platform .NET Standard toolset and without any Windows specific SDK needed? I think just the .NET SDK might be enough for them 🤔

Copy link
Contributor Author

@Rosuavio Rosuavio Nov 26, 2020

Choose a reason for hiding this comment

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

If we want to expand this pr it could also provide some value to connect this file into our CI system.

If we make it so that the build server only uses the VS comments from this file it could help in many ways.

  1. Makes it easy to add a VS component to the build system.
  2. Make it hard to add code to requires a VS component without listing it.

.vsconfig Outdated
Comment on lines 24 to 25
"Microsoft.Net.Component.4.5.2.TargetingPack",
"Microsoft.Net.Component.4.5.TargetingPack",
Copy link
Member

Choose a reason for hiding this comment

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

Feel like we probably only need one of these. @azchohfi do you know which one we need now? Docs say 4.6.2 but that seems older?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

4.5 is required by the UWP workload and 4.5.2 is not, but 4.5.2 is recommended by the .Net desktop development workload.

From my local testing, it seems we don't need the .Net Desktop development Workload, only some components part of it.

As expected, it seems like the UWP Workload is required, for building and testing.

@michael-hawker michael-hawker marked this pull request as draft December 3, 2020 21:12
@michael-hawker michael-hawker added this to the 7.1 milestone Mar 2, 2021
@michael-hawker michael-hawker removed this from the 7.1 milestone Sep 2, 2021
@Rosuavio Rosuavio closed this Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add .vsconfig file
3 participants