diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eaad724..47ab129 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,8 +68,6 @@ jobs: # Push the package - name: NuGet push run: dotnet nuget push ${{ env.OUTPUT_PATH }}*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json - - name: Publish to NuGet - run: dotnet nuget push ${{ env.OUTPUT_PATH }}*.nupkg -s https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} - uses: avakar/tag-and-release@v1 name: Create Release Tag v${{ steps.package_version.outputs.version }} diff --git a/README.md b/README.md index 18c1006..238e536 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,8 @@ builder.Services.AddViteManifest(builder.Configuration); **2. Register the tag helper** (in `_ViewImports.cshtml`): ```cshtml -@addTagHelper *, Vite +@using Vite; +@addTagHelper *, Vite.dotnet ``` ## Configuration diff --git a/Vite.dotnet.slnx b/Vite.dotnet.slnx index 39527fe..313f8e6 100644 --- a/Vite.dotnet.slnx +++ b/Vite.dotnet.slnx @@ -7,5 +7,5 @@ - + diff --git a/Vite.dotnet/Services/ViteManifestService.cs b/Vite.dotnet/Services/ViteManifestService.cs index 3e82c02..95fbd9d 100644 --- a/Vite.dotnet/Services/ViteManifestService.cs +++ b/Vite.dotnet/Services/ViteManifestService.cs @@ -155,6 +155,10 @@ private IReadOnlyDictionary LoadManifest() var manifest = JsonSerializer.Deserialize>(json, JsonOptions); if (manifest != null) { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Loaded Vite manifest found at {ManifestPath}", _manifestPath); + } return manifest; } } diff --git a/Vite.dotnet/Vite.dotnet.csproj b/Vite.dotnet/Vite.dotnet.csproj index d3ef2d0..4b542ec 100644 --- a/Vite.dotnet/Vite.dotnet.csproj +++ b/Vite.dotnet/Vite.dotnet.csproj @@ -4,7 +4,7 @@ net10.0 enable enable - 0.1.0 + 0.2.0