Skip to content

Commit

Permalink
Fix issue with getting a 404 for blazor.server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
normj committed Nov 20, 2023
1 parent 52a5137 commit 11256bc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<OutputType>Exe</OutputType>
<Description>A tool to help debug and test your .NET Core AWS Lambda functions locally.</Description>
<LangVersion>Latest</LangVersion>
<VersionPrefix>0.15.0</VersionPrefix>
<VersionPrefix>0.15.1</VersionPrefix>
<Product>AWS .NET Lambda Test Tool</Product>
<Copyright>Apache 2</Copyright>
<PackageTags>AWS;Amazon;Lambda</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<Description>A tool to help debug and test your .NET 6.0 AWS Lambda functions locally.</Description>
<VersionPrefix>0.15.0</VersionPrefix>
<VersionPrefix>0.15.1</VersionPrefix>
<Product>AWS .NET Lambda Test Tool</Product>
<Copyright>Apache 2</Copyright>
<PackageTags>AWS;Amazon;Lambda</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<Description>A tool to help debug and test your .NET 7.0 AWS Lambda functions locally.</Description>
<VersionPrefix>0.15.0</VersionPrefix>
<VersionPrefix>0.15.1</VersionPrefix>
<Product>AWS .NET Lambda Test Tool</Product>
<Copyright>Apache 2</Copyright>
<PackageTags>AWS;Amazon;Lambda</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<Description>A tool to help debug and test your .NET 8.0 AWS Lambda functions locally.</Description>
<VersionPrefix>0.15.0</VersionPrefix>
<VersionPrefix>0.15.1</VersionPrefix>
<Product>AWS .NET Lambda Test Tool</Product>
<Copyright>Apache 2</Copyright>
<PackageTags>AWS;Amazon;Lambda</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,8 @@ public void ConfigureServices(IServiceCollection services)
{
var fileProvider = new ManifestEmbeddedFileProvider(typeof(Startup).Assembly, "wwwroot");

var f1 = fileProvider.GetFileInfo("_framework/blazor.server.js");

// Make sure we don't remove the existing file providers (blazor needs this)
o.FileProvider = new CompositeFileProvider(fileProvider);

var f = o.FileProvider.GetFileInfo("_framework/blazor.server.js");
Console.WriteLine(f.Name);
o.FileProvider = new CompositeFileProvider(o.FileProvider, fileProvider);
});
#endif
}
Expand Down

0 comments on commit 11256bc

Please sign in to comment.