Replies: 2 comments
-
If something is not available through XProject directly, you can through msbuild since MvsSln 2.x partially relies on it when processing project instances. While in MvsSln 3.x this is planned to be replaced by IeXod. For MvsSln 2.5.3 try this, for example: using var sln = new Sln("...sln", SlnItems.Env);
sln.Result.Env
.LoadProjects(sln.Result.ProjectItemsConfigs.Where(p => p.project.IsCs()))
.ForEach(xp =>
{
xp.AddItem("Compile", @"financial\Invoice.cs");
xp.AddItem("Compile",
@"financial\Invoice.Designer.cs",
new[] { new KeyValuePair<string, string>("DependentUpon", "Invoice.cs") }
);
xp.AddItem("EmbeddedResource", @"Images\Images.Invoice.png");
xp.Save();
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you so much |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add some c# files and folders to .csproj file:
also I want to add some embedded resource:
Is it possible with your library? if yes, how?
Regards
Beta Was this translation helpful? Give feedback.
All reactions