Skip to content

Commit

Permalink
Promote Framework not found (MSB3644) warning to error
Browse files Browse the repository at this point in the history
When the targeted .NET framework reference assembly folder is not found,
an error (rather than warning) will be generated. This will prevent
producing a build that could be invalid.

Closes dotnet#173
  • Loading branch information
AndyGerlicher committed Jan 26, 2016
1 parent 599d48b commit 0bcc8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XMakeTasks/GetReferenceAssemblyPaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private IList<String> GetPaths(string rootPath, FrameworkNameVersioning framewor
// No reference assembly paths could be found, log a warning as there could be future errors which may be confusing because of this.
if (pathsToReturn.Count == 0)
{
Log.LogWarningWithCodeFromResources("GetReferenceAssemblyPaths.NoReferenceAssemblyDirectoryFound", frameworkmoniker.ToString());
Log.LogErrorWithCodeFromResources("GetReferenceAssemblyPaths.NoReferenceAssemblyDirectoryFound", frameworkmoniker.ToString());
}

return pathsToReturn;
Expand Down

0 comments on commit 0bcc8db

Please sign in to comment.