Skip to content

Commit

Permalink
fix UiHint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Sep 12, 2023
1 parent 51167d0 commit 767d3f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/GUI/Shared/Helpers/SqlProjHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ public static string SetRelativePathForSqlProj(string uiHint, string projectDire
{
if (Path.IsPathRooted(uiHint))
{
return PathExtensions.GetRelativePath(projectDirectory, uiHint);
uiHint = PathExtensions.GetRelativePath(projectDirectory, uiHint);
}

if (Path.IsPathRooted(uiHint) || uiHint.EndsWith(".dacpac", System.StringComparison.OrdinalIgnoreCase))
if (Path.IsPathRooted(uiHint) || uiHint.EndsWith(".dacpac", StringComparison.OrdinalIgnoreCase))
{
return null;
}
Expand Down
6 changes: 3 additions & 3 deletions test/ScaffoldingTester/DatabaseBuild/DatabaseBuild.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<None Include="..\Database\dbo\Tables\Table1.sql" Link="Table1.sql" />
</ItemGroup>
<ItemGroup>
<Content Include="..\Database\dbo\**\*.sql" />
</ItemGroup>

</Project>

0 comments on commit 767d3f5

Please sign in to comment.