Blazor Sample Project Compile 'Error' Workarounds.. Well at least what I encountered

Hello,
 
Yea I am the guy with the GoPro front left, daughter is right.  

MS Blazor reminds me of this class 4 rapid...  You don't want to know what Actually not what you would expect.  We went under and came back out on top, but the "guide" fell off! 

=====================================================================

My goal here is to help others...

Note to all:  
I have read some threads on the SyncFusion forum with people getting upset and trashing SyncFusion component library... Ok go to DevExpress, no wait, go to Telerik, Na OpenSource...Have fun, please let me know if u find a 'perfect' library that is easy to implement.
 
I have tried a few, in general this requires a whole new mindset based on my limited 30+ years or so of coding... Back to the image above... 
 
"If you can't swim, you should not be on the boat in the first place.
     I am an optimist, so if you whine at what I am saying, sorry I won't bite.  
 
MS Blazor is a "bleeding" edge tech, yea MS has released a "prod" version, but it will take some patience with this new PWA implementation, behind the scenes JavaScript, yea it still use, just another "virgin" library, that should cover all sexes and orientations I hope.
 
Any whooo..
 
All of this happened between approx: 930pm to 10:30pm 07/22/2020
VS2019 Enterprise - 16.6.3
Ok so I suddenly could not compile the sample blazor project
ERROR Missing resource namespace..
     blazor_samples.Resources

So I figured I would see if there was any Nuget updates


That got really weird..
  • It NuGet Manager UI stated I had 11 updates.. no problem
  • After several attempts this did not work
  • So I decided to uninstall the 18.2.0.44, maybe it was have a conflict
  • When I went to search for Syncfusion I found a only about 3 of the dozen or so files... strange
  • NuGet was acting very unstable... oh well...
  • Of course I closed re-opened..VS2019.. no change
Time for plan 'B'  
  • So I figured I would try using the "NuGet Package Console"
  • I did a find on SyncFusion.Blazor
  • Only a few files came back
  • Since I had made a point to make a screenshot the list of packages before uninstalling them I figured I would try installing one at a time
  • being version specific for 18.2.0.46
  • this worked and I had now put the packages back and moved to .46
Ok back to the resource problem.... 
 
ERROR Missing resource namespace..
     blazor_samples.Resources

Nothing changed still broken... Cool nice sample to play with..
 
So I ended up commented out the entire class
     public class SyncfusionLocalizer : ISyncfusionStringLocalizer

and of course the caller in the Startup.cs
 // Register the Syncfusion locale service to customize the  SyncfusionBlazor component locale culture
            //services.AddSingleton(typeof(ISyncfusionStringLocalizer), typeof(SyncfusionLocalizer));

OK next....

Now a new error

 @*Commands">*@
 
The compiler it did not like the command word outside of .. blah blah blah.. to new to Blazor, this library.. It is really easy to get caught up in the noise.  When that component is needed to work properly that is when you "deep dive". like disabling the "Language" resource..

Compiled again..  SUCCESS!

 
But wait there is more!  One more thing is skipped over...

 
I stumbled across a right-mouse menu option of of the Blazor Project  " Migrate to Syncfusion Blazor app to another version..
 
Cool this looks interesting, dialog comes up, press the button and wait for the magic..

Well it went looking for some MS Blazor SDK xml file which it could not find "error",  so this never made it beyond the nice looking dialog...  
 
Well this is a beginning of my journey into Blazor with my chosen component library from "SyncFusion".  

Stayed tuned same "Blazor channel" but "random times."
 
Tom K (CodeChaser)

4 Replies 1 reply marked as answer

JA Jesus Arockia Sankaran S Syncfusion Team July 24, 2020 11:57 AM UTC

Hi Thomas, 

Thank you for contacting Syncfusion support. 

We have checked your query and we suspect that you are running our GitHub sample repository. The reported problem in restoring the package is already known to us but we are not able to reproduce the Resources not found issues. We request you to check the below pull request for fixing package restoring issue. 


Also, we request you to download/clone the application from the below forked branch until the above pull request is merged. 


We have also prepared a video for your reference that you can find from the below link. 


We have forwarded the issue reported regarding the extension to corresponding team and update you further details as soon as possible. 

We request you to share more details such as screen shots, stack trace, complete error message, video (screen capture) for clear understanding if we misunderstood your point. 

Please get back to us if you need further assistance. 

Regards, 
Jesus Arockia Sankaran S 


Marked as answer

CO CodeChaser July 24, 2020 03:24 PM UTC

Hi Jesus,

Thx for the quick response I hope I was of help.   

I took a quick look at the repo "https://github.com/syncfusion/blazor-samples/pull/99".
I could see the change to the project file which makes perfect sense.

Also the change you made to trees codebase is what is needed.  

I will try these later today during lunch actually.

What about the language resource class?  Out of curiosity.

My actual focus is implementing a CSS grid technique for Blazor.   No matter I need the sample running with ability to get updates as your firm releases them.

Regards,
Tom









CO CodeChaser July 24, 2020 04:27 PM UTC

Hi,

Looks good, 
  • I was manually edited the 'project' file changing the references as shown in the GitHub 
  • Did the same for the 'CommandColumn.razor' page
Tested both worked perfectly.

Thx,
Tom


JA Jesus Arockia Sankaran S Syncfusion Team July 27, 2020 05:47 AM UTC

Hi Thomas, 

You are welcome and thank you for the information.  

Regards, 
Jesus Arockia Sankaran S 


Loader.
Up arrow icon