C# Class ProjectModels.Csproj

Manipulate a *.csproj file.
ファイルを表示 Open project: ufcpp/UfcppSample

Public Properties

Property Type Description
Namespace XNamespace

Private Properties

Property Type Description
GetDependencies IEnumerable
GetProjectReferences IEnumerable
ReadTargetFrameworkVersion string

Public Methods

Method Description
Csproj ( string basePath, string relativePath ) : System.Collections.Generic
GenerateWrapJson ( string wrapFolder ) : void
GetElements ( string elementName ) : IEnumerable
GetItemGroups ( ) : IEnumerable
MigrateToProjectJson ( ) : bool

Rewrite this csproj file to migrate from packages.config to project.json: - Generate project.json - Replace {None Include="packages.confing"} to {None Include="project.json"} - Remove {References} reletated to NuGet packages - Remove packages.config

Save ( ) : void

Save changes in Content

Private Methods

Method Description
GetDependencies ( ) : IEnumerable
GetProjectReferences ( ) : IEnumerable
ReadTargetFrameworkVersion ( string csprojPath ) : string

Method Details

Csproj() public method

public Csproj ( string basePath, string relativePath ) : System.Collections.Generic
basePath string
relativePath string
return System.Collections.Generic

GenerateWrapJson() public method

public GenerateWrapJson ( string wrapFolder ) : void
wrapFolder string
return void

GetElements() public method

public GetElements ( string elementName ) : IEnumerable
elementName string
return IEnumerable

GetItemGroups() public method

public GetItemGroups ( ) : IEnumerable
return IEnumerable

MigrateToProjectJson() public method

Rewrite this csproj file to migrate from packages.config to project.json: - Generate project.json - Replace {None Include="packages.confing"} to {None Include="project.json"} - Remove {References} reletated to NuGet packages - Remove packages.config
public MigrateToProjectJson ( ) : bool
return bool

Save() public method

Save changes in Content
public Save ( ) : void
return void

Property Details

Namespace public_oe static_oe property

public static XNamespace Namespace
return XNamespace