You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contract.ThrowIfNull(FindUsableMSBuild(projectFilePath),$"We don't have an MSBuild to use; {nameof(FindUsableMSBuild)} should have been called first to check.");
150
+
Contract.ThrowIfTrue(TryEnsureMSBuildLoaded(projectFilePath),$"We don't have an MSBuild to use; {nameof(TryEnsureMSBuildLoaded)} should have been called first to check.");
/// <summary>Permits loading a project file which only exists in-memory, for example, for file-based program scenarios.</summary>
33
+
/// <summary>
34
+
/// Permits loading a project file which only exists in-memory, for example, for file-based program scenarios.
35
+
/// </summary>
19
36
/// <param name="projectFilePath">A path to a project file which may or may not exist on disk. Note that an extension that is known by MSBuild, such as .csproj or .vbproj, should be used here.</param>
20
37
/// <param name="projectContent">The project file XML content.</param>
_logger?.LogWarning($"An installation of Mono could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors.");
64
+
_logger?.LogWarning($"An installation of Mono MSBuild could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors.");
65
65
buildHostKind=BuildHostProcessKind.NetCore;
66
66
}
67
67
@@ -72,12 +72,11 @@ public async Task<RemoteBuildHost> GetBuildHostWithFallbackAsync(string projectF
72
72
// us to discover VS instances in .NET Framework hosts right now.
// It's not usable, so we'll fall back to the .NET Core one.
79
78
_logger?.LogWarning($"An installation of Visual Studio or the Build Tools for Visual Studio could not be found; {projectOrSolutionFilePath} will be loaded with the .NET Core SDK and may encounter errors.");
_logger?.LogInformation(".NET BuildHost started from {ProcessPath} reloading to start from {DotnetPath} to match necessary SDK location.",processPath,dotnetPath);
staticstringGetProcessPath()=>Process.GetCurrentProcess().MainModule?.FileName??thrownewInvalidOperationException("Unable to determine the path of the current process.");
0 commit comments