Skip to content

Commit

Permalink
Fix: Packed nuget has incorrect paths for imported libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyaulee committed Feb 13, 2024
1 parent e16aec0 commit 7803a0b
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 188 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

Expand Down
8 changes: 2 additions & 6 deletions src/Blazor.BrowserExtension/Blazor.BrowserExtension.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<Project Sdk="Microsoft.NET.Sdk.Razor">

<!-- Build properties. -->
<PropertyGroup>
Expand Down Expand Up @@ -28,13 +28,9 @@
<Pack>true</Pack>
<PackagePath>build</PackagePath>
</Content>
<Content Include="JsFetchHttpClient\JsHttpClient.js">
<Pack>true</Pack>
<PackagePath>content\BrowserExtensionScripts</PackagePath>
</Content>
<Content Include="content\src\lib\**">
<Pack>true</Pack>
<PackagePath>content\BrowserExtensionScripts\lib</PackagePath>
<PackagePath>content\staticwebassets\lib</PackagePath>
</Content>
<Content Include="..\Icon\Icon.png">
<Pack>true</Pack>
Expand Down
36 changes: 0 additions & 36 deletions src/Blazor.BrowserExtension/JsFetchHttpClient/JsHttpClient.cs

This file was deleted.

26 changes: 0 additions & 26 deletions src/Blazor.BrowserExtension/JsFetchHttpClient/JsHttpClient.js

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions src/Blazor.BrowserExtension/build/Blazor.BrowserExtension.targets
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
<!-- build/Blazor.BrowserExtension.targets -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<!-- Region
Adds the content JavaScript files from the NuGet package to the project.
-->
<PropertyGroup>
<_BrowserExtension_Package_Contents_Scripts_Directory Condition="'$(_BrowserExtension_Package_Contents_Scripts_Directory)' == ''">$(MSBuildThisFileDirectory)..\content\BrowserExtensionScripts</_BrowserExtension_Package_Contents_Scripts_Directory>
</PropertyGroup>

<ItemGroup Condition="'$(IncludeBrowserExtensionAssets)' == 'true'">
<StaticWebAsset Include="$(_BrowserExtension_Package_Contents_Scripts_Directory)\**\*.*">
<SourceType>Package</SourceType>
<SourceId>Blazor.BrowserExtension</SourceId>
<ContentRoot>$(_BrowserExtension_Package_Contents_Scripts_Directory)</ContentRoot>
<BasePath>_content/Blazor.BrowserExtension</BasePath>
<RelativePath>%(RecursiveDir)%(Filename)%(Extension)</RelativePath>
</StaticWebAsset>
</ItemGroup>
<!-- EndRegion -->

<!-- Target
Runs only when another target depends on this target.
Defines the config for browser extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
</PropertyGroup>

<!-- Link scripts according to the directory structure in the NuGet package -->
<PropertyGroup>
<_BrowserExtension_Package_Contents_Scripts_Directory>$(MSBuildThisFileDirectory)..\..\src\Blazor.BrowserExtension\content\dist</_BrowserExtension_Package_Contents_Scripts_Directory>
</PropertyGroup>

<ItemGroup>
<StaticWebAsset Include="$(MSBuildThisFileDirectory)..\..\src\Blazor.BrowserExtension\content\src\lib\*.*">
<SourceType>Package</SourceType>
Expand Down

0 comments on commit 7803a0b

Please sign in to comment.