Skip to content

Commit

Permalink
Fix VSPackage build
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Oct 2, 2023
1 parent 4092699 commit 02f6a1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
9 changes: 0 additions & 9 deletions build/Stride.VisualStudio.sln
Expand Up @@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.VisualStudio.Commands", "..\sources\tools\Stride.VisualStudio.Commands\Stride.VisualStudio.Commands.csproj", "{EF920B86-36CA-4457-8D6C-1F300F97C355}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.VisualStudio.Commands.Interfaces", "..\sources\tools\Stride.VisualStudio.Commands.Interfaces\Stride.VisualStudio.Commands.Interfaces.csproj", "{C2E8CBA7-04A8-44F9-ABA2-7D245AFF88E7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.VisualStudio.Package", "..\sources\tools\Stride.VisualStudio.Package\Stride.VisualStudio.Package.csproj", "{740ECD08-3EF4-40D9-B0D3-B37BC354F79D}"
Expand All @@ -19,10 +17,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EF920B86-36CA-4457-8D6C-1F300F97C355}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF920B86-36CA-4457-8D6C-1F300F97C355}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EF920B86-36CA-4457-8D6C-1F300F97C355}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EF920B86-36CA-4457-8D6C-1F300F97C355}.Release|Any CPU.Build.0 = Release|Any CPU
{C2E8CBA7-04A8-44F9-ABA2-7D245AFF88E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2E8CBA7-04A8-44F9-ABA2-7D245AFF88E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2E8CBA7-04A8-44F9-ABA2-7D245AFF88E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -43,7 +37,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\sources\shared\Stride.NuGetResolver\Stride.NuGetResolver.projitems*{ef920b86-36ca-4457-8d6c-1f300f97c355}*SharedItemsImports = 5
EndGlobalSection
EndGlobal
8 changes: 4 additions & 4 deletions sources/core/Stride.Core.Design/VisualStudio/Project.cs
Expand Up @@ -214,10 +214,10 @@ public IEnumerable<Project> GetDependencies(Solution solution)
// Example: "{GUID}|Infra.dll;{GUID2}|Services.dll;"
var propertyItem = sections["WebsiteProperties"].Properties["ProjectReferences"];
var value = propertyItem.Value;
if (value.StartsWith('\"'))
value = value[1..];
if (value.EndsWith('\"'))
value = value[..^1];
if (value.StartsWith("\""))
value = value.Substring(1);
if (value.EndsWith("\""))
value = value.Substring(0, value.Length - 1);

foreach (var dependency in value.Split(';'))
{
Expand Down
Expand Up @@ -297,7 +297,7 @@ private void ReadHeader()
{
var line = ReadLine();
solution.Headers.Add(line);
if (line.StartsWith('#'))
if (line.StartsWith("#"))
{
return;
}
Expand Down

0 comments on commit 02f6a1e

Please sign in to comment.