-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use this on a project that does not have a solution? #202
Comments
Hello, Looks like it's not possible for current version but you can either create solution in IDE
Or generate it programmatically using MvsSln, for example, for all found .csproj something like: string dir = @"<path to dir>\";
List<ProjectItem> projects = new();
List<IConfPlatformPrj> pcfg = new();
ConfigSln scfg = new("Debug", "arch");
foreach(string f in Directory.GetFiles(dir, "*.csproj", SearchOption.AllDirectories))
{
string fprj = dir.MakeRelativePath(f);
ProjectItem item = new(Path.GetDirectoryName(fprj), ProjectType.Cs, fprj);
projects.Add(item);
pcfg.Add(new ConfigPrj(scfg.Configuration, scfg.Platform, item.pGuid, build:true, scfg));
}
SlnHeader header = new();
header.SetFormatVersion("11.0"); save to disk using SlnWriter w = new
(
Path.Combine(dir, ".sln"),
new Dictionary<Type, HandlerValue>()
{
[typeof(LVisualStudioVersion)] = new(new WVisualStudioVersion(header)),
[typeof(LProject)] = new(new WProject(projects, new LProjectDependencies())),
[typeof(LSolutionConfigurationPlatforms)] = new(new WSolutionConfigurationPlatforms(new[] { scfg })),
[typeof(LProjectConfigurationPlatforms)] = new(new WProjectConfigurationPlatforms(pcfg)),
}
);
w.Write(new[]
{
new Section(new LVisualStudioVersion(), null),
new Section(new LProject(), null),
new Section(null, "Global"),
new Section(new LSolutionConfigurationPlatforms(), null),
new Section(new LProjectConfigurationPlatforms(), null),
new Section(null, "EndGlobal"),
}); Keep issue open to consider some automatic generation in future releases. |
Any progress on this issue? |
Recent MvsSln 2.7+ provides modern wrappers to create a solution from scratch in a few easy steps 3F/MvsSln#61 (comment) This can now be used to create solution and project files under DllExport project and this issue.
Since we're working through assembler beyond the CLR, it can be like ~
|
. . .
The question is related to:
DllExport -version
: 1.7.4Hi, I am using a project with no solution, and the GUI can't seem to handle this:
Is it possible?
The text was updated successfully, but these errors were encountered: