diff --git a/.editorconfig b/.editorconfig index 56f5c5c..eb308d2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,6 +17,10 @@ csharp_space_before_colon_in_inheritance_clause = true csharp_space_after_colon_in_inheritance_clause = true csharp_place_attribute_on_same_line = false +[*.csproj] +indent_style = space +indent_size = 2 + [*.yml] indent_style = space indent_size = 2 diff --git a/SharpIDE.Photino.sln b/SharpIDE.Photino.sln index d9cdb26..6989e79 100644 --- a/SharpIDE.Photino.sln +++ b/SharpIDE.Photino.sln @@ -16,6 +16,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpIDE.Photino", "src\SharpIDE.Photino\SharpIDE.Photino.csproj", "{E35167E1-0FF4-4194-97A8-CC95EDA224CD}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpIDE.Application", "src\SharpIDE.Application\SharpIDE.Application.csproj", "{D7D5D39E-DA3A-4B10-8F40-B07B769347F4}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,8 +31,13 @@ Global {E35167E1-0FF4-4194-97A8-CC95EDA224CD}.Debug|Any CPU.Build.0 = Debug|Any CPU {E35167E1-0FF4-4194-97A8-CC95EDA224CD}.Release|Any CPU.ActiveCfg = Release|Any CPU {E35167E1-0FF4-4194-97A8-CC95EDA224CD}.Release|Any CPU.Build.0 = Release|Any CPU + {D7D5D39E-DA3A-4B10-8F40-B07B769347F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D7D5D39E-DA3A-4B10-8F40-B07B769347F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D7D5D39E-DA3A-4B10-8F40-B07B769347F4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D7D5D39E-DA3A-4B10-8F40-B07B769347F4}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {E35167E1-0FF4-4194-97A8-CC95EDA224CD} = {F4ED837F-888A-4D01-BCED-C360B9CE0865} + {D7D5D39E-DA3A-4B10-8F40-B07B769347F4} = {F4ED837F-888A-4D01-BCED-C360B9CE0865} EndGlobalSection EndGlobal diff --git a/src/SharpIDE.Application/Features/SolutionDiscovery/GetNodesInSolution.cs b/src/SharpIDE.Application/Features/SolutionDiscovery/GetNodesInSolution.cs new file mode 100644 index 0000000..28a6508 --- /dev/null +++ b/src/SharpIDE.Application/Features/SolutionDiscovery/GetNodesInSolution.cs @@ -0,0 +1,6 @@ +namespace SharpIDE.Application.Features.SolutionDiscovery; + +public class GetNodesInSolution +{ + +} diff --git a/src/SharpIDE.Application/SharpIDE.Application.csproj b/src/SharpIDE.Application/SharpIDE.Application.csproj new file mode 100644 index 0000000..464aa47 --- /dev/null +++ b/src/SharpIDE.Application/SharpIDE.Application.csproj @@ -0,0 +1,14 @@ + + + + net9.0 + enable + enable + + + + + + + + diff --git a/src/SharpIDE.Photino/Program.cs b/src/SharpIDE.Photino/Program.cs index 5c89808..0f14fed 100644 --- a/src/SharpIDE.Photino/Program.cs +++ b/src/SharpIDE.Photino/Program.cs @@ -1,4 +1,5 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Build.Locator; +using Microsoft.Extensions.DependencyInjection; using MudBlazor.Services; using Photino.Blazor; @@ -21,6 +22,7 @@ public class Program app.MainWindow .SetSize(1400, 800) .SetDevToolsEnabled(true) + .SetMaximized(true) .SetLogVerbosity(0) //.SetIconFile("favicon.ico") .SetTitle("SharpIDE.Photino"); @@ -30,6 +32,9 @@ public class Program app.MainWindow.ShowMessage("Fatal exception", error.ExceptionObject.ToString()); }; + var instance = MSBuildLocator.QueryVisualStudioInstances().OrderByDescending(instance => instance.Version).First(); + MSBuildLocator.RegisterInstance(instance); + app.Run(); } } diff --git a/src/SharpIDE.Photino/SharpIDE.Photino.csproj b/src/SharpIDE.Photino/SharpIDE.Photino.csproj index 5885fac..88e8098 100644 --- a/src/SharpIDE.Photino/SharpIDE.Photino.csproj +++ b/src/SharpIDE.Photino/SharpIDE.Photino.csproj @@ -35,4 +35,8 @@ + + + +