Skip to content

A strongly typed wrapper of the Microsoft.Build.Evaluation.Project class

License

Notifications You must be signed in to change notification settings

Code-Sharp/TheCsprojLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TheCsprojLibrary

Tired of guessing the names of your csproj properties? This library is for you!

Usage:

TypedProject myProject = new TypedProject(new Project("MyProject.csproj"));

foreach (Reference reference in myProject.References)
{
    Console.WriteLine(reference.Name);
    Console.WriteLine(reference.HintPath);
    Console.WriteLine(reference.Private);
    Console.WriteLine(reference.RequiredTargetFramework);
    Console.WriteLine(reference.SpecificVersion);
    Console.WriteLine(reference.UnevaluatedInclude);

    reference.SpecificVersion = true;
}

myProject.TargetFrameworkVersion = "v4.5";

myProject.DefineConstants += " MyConstant";

About

A strongly typed wrapper of the Microsoft.Build.Evaluation.Project class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages