Skip to content

Conversation

@jonpryor
Copy link
Contributor

Commit 2063ab7 tried to improve error messages when required
dependencies are missing. Unfortunately, there was one case not
considered: when $(AutoProvision) is False, and a dependency to
install needs to be downloaded.

For example, take PR 445, which requires an updated mono.
If the system mono is unsuported, the required mono hasn't already
been downloaded, and $(AutoProvision) is False, then the following
"helpful" error message is provided:

error : Could not find required program 'mono'. Please run:
installer -pkg "$HOME/android-archives/MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg" -target /

If MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg hasn't
already been downloaded, then the suggested command will fail.

This is not helpful. :-)

Thus, when $(AutoProvision) is False and URLs need to be downloaded,
then provide a message stating that:

Please download
`https://.../MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg`
into `$HOME/android-archives/MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg`.

@jonpryor
Copy link
Contributor Author

System.InvalidOperationException : Could not connect to the feed specified at 'https://packages.nuget.org/api/v2'. Please verify that the package source (located in the Package Manager Settings) is valid and ensure your network connectivity.
  ----> System.Net.WebException : The request timed out

Argh!

@jonpryor
Copy link
Contributor Author

build

Commit 2063ab7 tried to improve error messages when required
dependencies are missing. Unfortunately, there was one case not
considered: when `$(AutoProvision)` is False, and a dependency to
install needs to be downloaded.

For example, take [PR 445][0], which requires an updated mono.
If the system mono is unsuported, the required mono hasn't already
been downloaded, and `$(AutoProvision)` is False, then the following
"helpful" error message is provided:

	error : Could not find required program 'mono'. Please run:
	installer -pkg "$HOME/android-archives/MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg" -target /

If `MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg` hasn't
already been downloaded, then the suggested command will fail.

This is not helpful. :-)

Thus, when `$(AutoProvision)` is False and URLs need to be downloaded,
then provide a message stating that:

	Please download
	`https://.../MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg`
	into `$HOME/android-archives/MonoFramework-MDK-4.8.0.489.macos10.xamarin.universal.pkg`.

[0]: dotnet#445
@jonpryor jonpryor force-pushed the jonp-download-message branch from 20156c0 to 0445e37 Compare March 15, 2017 15:11
@radekdoulik radekdoulik merged commit 184b692 into dotnet:master Mar 15, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants