Browse Source
NuGet's IProjectSystem.IsSupportedFile now returns false for web.config files when the project is not a web project. It returns false for app.config files when the project is a web project.pull/28/head
5 changed files with 139 additions and 7 deletions
@ -0,0 +1,19 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.SharpDevelop.Project; |
||||||
|
|
||||||
|
namespace ICSharpCode.PackageManagement |
||||||
|
{ |
||||||
|
public static class MSBuildBasedProjectExtensions |
||||||
|
{ |
||||||
|
public static readonly Guid WebApplication = Guid.Parse(ProjectTypeGuids.WebApplication); |
||||||
|
public static readonly Guid WebSite = Guid.Parse(ProjectTypeGuids.WebSite); |
||||||
|
|
||||||
|
public static bool IsWebProject(this MSBuildBasedProject project) |
||||||
|
{ |
||||||
|
return project.HasProjectType(WebApplication) || project.HasProjectType(WebSite); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue