Skip to content

automatically prompt to install missing components - #1384

Closed
ghuntley wants to merge 1 commit into
masterfrom
dev/ghuntley/ship-vsconfig-in-uno-solution-templates
Closed

ghuntley wants to merge 1 commit into
masterfrom
dev/ghuntley/ship-vsconfig-in-uno-solution-templates

Conversation

@ghuntley

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): fixes #1376

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

When a developer generates a new solution via the wizard WebAssembly (and other heads) will fail to compile if the the pre-requisite Visual Studio for Windows payloads are not installed.

What is the new behavior?

After the solution is generated, if a developer does not have the right payloads are installed then they will get a super obvious prompt asking them to install the pre-requisite payloads.

image

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

.vsconfig in this pull-request is the same one we used to build Uno.UI.sln minus all Visual Studio extension development payloads.

See below for more information about the feature and for payload identifiers:

@ghuntley ghuntley added kind/enhancement New feature or request platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform kind/consumer-experience area/solution-templates Categorizes an issue or PR as relevant to the solution template labels Aug 14, 2019
@ghuntley
ghuntley force-pushed the dev/ghuntley/ship-vsconfig-in-uno-solution-templates branch from b0f21d6 to 19b08ea Compare August 14, 2019 07:36
@ghuntley

ghuntley commented Aug 14, 2019 •

Copy link
Copy Markdown
Member Author

As the pull-request is now the .vsconfig is not being included when generating a new solution.

Next steps:

  • pull vsix off CI and re-check
  • obtain second set of eyes to review vsix changes

@jeromelaban

jeromelaban commented Aug 26, 2019 •

Copy link
Copy Markdown
Member

Adding solution files (or out of solution files, for that matter) can be done through the Wizard project and add the file there. This project is still referenced but empty, as it used to be used to add a nuget.config file.

It used to be done that way:

var nugetConfigPath = Path.Combine(_targetPath, "..\\nuget.config");

if (!File.Exists(nugetConfigPath))
{
        Directory.CreateDirectory(Path.Combine(_targetPath, "..\\PackageCache"));

	using (var reader = new StreamReader(GetType().Assembly.GetManifestResourceStream($"{GetType().Assembly.GetName().Name}.NuGet.config")))
	{
		File.WriteAllText(nugetConfigPath, reader.ReadToEnd());
	}
}

The added file needs to be provided as an embedded resource.

@MatFillion

MatFillion commented Sep 16, 2019 •

Copy link
Copy Markdown
Contributor

I've had this problem (missing .net core 2.2 error) when setting up a new Visual Studio 2019, definitely a genius idea to add this warning! It would have saved me a few minutes (luckily i found this issue), I can't imagine for someone not familiar with uno.

@ghuntley

Copy link
Copy Markdown
Member Author

I think this should be merged before UnoConf. I might have time today to get around to it but probably not. If you have capacity to take over that would be rad.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@jeromelaban
jeromelaban deleted the dev/ghuntley/ship-vsconfig-in-uno-solution-templates branch August 17, 2022 23:40
kazo0 pushed a commit to kazo0/uno that referenced this pull request Mar 6, 2026
…er-fix

docs: fix wording for upgrading docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/solution-templates Categorizes an issue or PR as relevant to the solution template do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/enhancement New feature or request platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the .NET Core 2.2 SDK requirement for WebAssembly more obvious

6 participants