livesharp's Issues
LiveSharp 2.0.35 doesn't update views
Hello,
thank you for your work, it's awesome.
I have an error after update to latest server and nuget version (2.1.2/2.0.35)
The app is correctly connecting to the server but the view is not updated.
If i use latest server 2.1.2 and nuget 2.0.28 it is working correctly.
When i build the project with nuget 2.0.35 i have this warning in output:
Microsoft.Common.CurrentVersion.targets(2218, 5): [MSB3106] Assembly strong name "/Users/XXXX/.nuget/packages/livesharp/2.0.35/build/LiveXaml.Standard.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(\). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash(\).
Hope it helps
Couldn't find method: 'Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
Microsoft.AspNetCore.Components.ComponentBase.StateHasChanged()
Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.HandleException(Exception exception)
Microsoft.AspNetCore.Components.RenderTree.Renderer.HandleExceptionViaErrorBoundary(Exception error, ComponentState errorSourceOrNull)
Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters)
Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderRootComponentAsync(int componentId, ParameterView initialParameters)
Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.CreateInitialRenderAsync(Type componentType, ParameterView initialParameters)
Microsoft.AspNetCore.Components.Rendering.HtmlRenderer.RenderComponentAsync(Type componentType, ParameterView initialParameters)
Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext+<>c__11+<b__11_0>d.MoveNext()
Microsoft.AspNetCore.Mvc.ViewFeatures.StaticComponentRenderer.PrerenderComponentAsync(ParameterView parameters, HttpContext httpContext, Type componentType)
Microsoft.AspNetCore.Mvc.ViewFeatures.ComponentRenderer.PrerenderedServerComponentAsync(HttpContext context, ServerComponentInvocationSequence invocationId, Type type, ParameterView parametersCollection)
Microsoft.AspNetCore.Mvc.ViewFeatures.ComponentRenderer.RenderComponentAsync(ViewContext viewContext, Type componentType, RenderMode renderMode, object parameters)
Microsoft.AspNetCore.Mvc.TagHelpers.ComponentTagHelper.ProcessAsync(TagHelperContext context, TagHelperOutput output)
Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, int i, int count)
AspNetCoreGeneratedDocument.Pages__Host+<>c__DisplayClass15_0+<b__1>d.MoveNext() in _Host.cshtml
window.getBlazorHybridType = function () { return window.blazorHybridType; }
</script>
@if (blazorHybridType == BlazorHybridType.ServerSide)
{
<app>
<component type="Program.App" render-mode="ServerPrerendered" param-SessionId="sessionId" />
<persist-component-state />
</app>
<script src="_framework/blazor.server.js"></script>
<script>
setTimeout(() => {
if (window.Blazor && window.Blazor._internal) {
Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync()
AspNetCoreGeneratedDocument.Pages__Host.ExecuteAsync() in _Host.cshtml
+
Layout = null;
Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts)
Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, string contentType, Nullable statusCode)
LiveSharp doesn't work with blazor.
On a new blazor server project template with no modification apart from installing LiveSharp, initial compilation fails.
Below is the logs on LiveSharp Server
17:58:12.622: Finished: Initial compilation blz (5048)
17:58:12.615: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(46,27): error CS0229: Ambiguity between 'FetchData.ForecastService' and 'FetchData.ForecastService'
17:58:12.613: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(46,9): error CS0229: Ambiguity between 'FetchData.forecasts' and 'FetchData.forecasts'
17:58:12.610: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(28,39): error CS0229: Ambiguity between 'FetchData.forecasts' and 'FetchData.forecasts'
17:58:12.609: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(12,6): error CS0229: Ambiguity between 'FetchData.forecasts' and 'FetchData.forecasts'
17:58:12.607: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(46,27): error CS0229: Ambiguity between 'FetchData.ForecastService' and 'FetchData.ForecastService'
17:58:12.604: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(46,9): error CS0229: Ambiguity between 'FetchData.forecasts' and 'FetchData.forecasts'
17:58:12.601: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(28,39): error CS0229: Ambiguity between 'FetchData.forecasts' and 'FetchData.forecasts'
17:58:12.596: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(12,6): error CS0229: Ambiguity between 'FetchData.forecasts' and 'FetchData.forecasts'
17:58:12.594: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(37,28): error CS0229: Ambiguity between 'NavMenu.collapseNavMenu' and 'NavMenu.collapseNavMenu'
17:58:12.591: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(37,9): error CS0229: Ambiguity between 'NavMenu.collapseNavMenu' and 'NavMenu.collapseNavMenu'
17:58:12.586: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(33,40): error CS0229: Ambiguity between 'NavMenu.collapseNavMenu' and 'NavMenu.collapseNavMenu'
17:58:12.580: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(10,41): error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
17:58:12.579: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(10,14): error CS0229: Ambiguity between 'NavMenu.NavMenuCssClass' and 'NavMenu.NavMenuCssClass'
17:58:12.576: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(4,74): error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
17:58:12.574: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(37,28): error CS0229: Ambiguity between 'NavMenu.collapseNavMenu' and 'NavMenu.collapseNavMenu'
17:58:12.572: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(37,9): error CS0229: Ambiguity between 'NavMenu.collapseNavMenu' and 'NavMenu.collapseNavMenu'
17:58:12.571: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(33,40): error CS0229: Ambiguity between 'NavMenu.collapseNavMenu' and 'NavMenu.collapseNavMenu'
17:58:12.569: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(10,41): error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
17:58:12.565: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(10,14): error CS0229: Ambiguity between 'NavMenu.NavMenuCssClass' and 'NavMenu.NavMenuCssClass'
17:58:12.564: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(4,74): error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
17:58:12.562: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(16,9): error CS0229: Ambiguity between 'Counter.currentCount' and 'Counter.currentCount'
17:58:12.561: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(9,43): error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
17:58:12.559: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(7,35): error CS0229: Ambiguity between 'Counter.currentCount' and 'Counter.currentCount'
17:58:12.558: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(16,9): error CS0229: Ambiguity between 'Counter.currentCount' and 'Counter.currentCount'
17:58:12.557: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(9,43): error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
17:58:12.552: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(7,34): error CS0229: Ambiguity between 'Counter.currentCount' and 'Counter.currentCount'
17:58:12.547: D:\Users\ojesc\Desktop\blz\blz\Shared\SurveyPrompt.razor(3,15): error CS0229: Ambiguity between 'SurveyPrompt.Title' and 'SurveyPrompt.Title'
17:58:12.546: D:\Users\ojesc\Desktop\blz\blz\Shared\SurveyPrompt.razor(3,14): error CS0229: Ambiguity between 'SurveyPrompt.Title' and 'SurveyPrompt.Title'
17:58:12.542: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_FetchData_razor.g.cs(206,98): error CS0102: The type 'FetchData' already contains a definition for 'ForecastService'
17:58:12.539: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(44,35): error CS0111: Type 'FetchData' already defines a member called 'OnInitializedAsync' with the same parameter types
17:58:12.533: D:\Users\ojesc\Desktop\blz\blz\Pages\FetchData.razor(42,32): error CS0102: The type 'FetchData' already contains a definition for 'forecasts'
17:58:12.530: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_FetchData_razor.g.cs(93,33): error CS0111: Type 'FetchData' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.527: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Index_razor.g.cs(86,33): error CS0111: Type 'Index' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.522: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(14,18): error CS0111: Type 'Counter' already defines a member called 'IncrementCount' with the same parameter types
17:58:12.517: D:\Users\ojesc\Desktop\blz\blz\Pages\Counter.razor(12,17): error CS0102: The type 'Counter' already contains a definition for 'currentCount'
17:58:12.513: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Counter_razor.g.cs(86,33): error CS0111: Type 'Counter' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.511: D:\Users\ojesc\Desktop\blz\blz\Shared\SurveyPrompt.razor(15,20): error CS0102: The type 'SurveyPrompt' already contains a definition for 'Title'
17:58:12.506: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Shared_SurveyPrompt_razor.g.cs(85,33): error CS0111: Type 'SurveyPrompt' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.504: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\App_razor.g.cs(85,33): error CS0111: Type 'App' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.502: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Shared_MainLayout_razor.g.cs(85,33): error CS0111: Type 'MainLayout' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.497: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(35,18): error CS0111: Type 'NavMenu' already defines a member called 'ToggleNavMenu' with the same parameter types
17:58:12.496: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(33,21): error CS0102: The type 'NavMenu' already contains a definition for 'NavMenuCssClass'
17:58:12.495: D:\Users\ojesc\Desktop\blz\blz\Shared\NavMenu.razor(31,18): error CS0102: The type 'NavMenu' already contains a definition for 'collapseNavMenu'
17:58:12.493: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Shared_NavMenu_razor.g.cs(85,33): error CS0111: Type 'NavMenu' already defines a member called 'BuildRenderTree' with the same parameter types
17:58:12.492: Microsoft.NET.Sdk.Razor.SourceGenerators\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\_Imports_razor.g.cs(85,33): error CS0115: '_Imports.BuildRenderTree(RenderTreeBuilder)': no suitable method found to override
17:58:12.476: D:\Users\ojesc\Desktop\blz\blz\_Imports.razor.g.cs(82,26): error CS0263: Partial declarations of '_Imports' must not specify different base classes
17:58:07.573: Starting: Initial compilation blz
17:58:07.556: watcher created at D:\Users\ojesc\Desktop\blz\blz\
17:58:07.572: LiveSharp Server connected
17:58:07.493: Workspace loading finished in 2492ms
17:58:05.823: Loading project blz
17:58:04.960: client connected: 192.168.43.174:51514
17:58:03.315: Starting dashboard process with arguments: /SolutionPath="D:\Users\ojesc\Desktop\blz\blz" /ProjectName="blz" /ProjectDir="D:\Users\ojesc\Desktop\blz\blz" /NuGetPackagePath="C:\Users\ojesc\.nuget\packages\livesharp\2.0.35\build" /ServerVersion="2.1.2" dashboard
dotnet --version
6.0.300-preview.22204.3
Switching the project sdk to 6.0.202, I have the same result
Downgrading to LiveSharp version "2.0.24" worked though, but file scoped namespaces like namespace XYZ;
will cause compilation exception
.net 7
Hi Mihhail
I'm not having the best experience with .net hot-reload and dotnet watch.
I came to buy a licence of LiveSharp and saw it is now open-source (I can guess why). It only seems to support up to .net 5, and I suspect that might be why my Roslyn code-generators and being executed?
Is there any chance you could update the tool and package to .net 7, please? I am really looking forward to trying it properly!
Thanks!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.