Forum Widgets
Latest Discussions
Can't install MAUI workload properly on Mac with .NET SDK 8
I’m having trouble installing the .NET MAUI workload on my Mac running macOS. Despite trying different versions of the .NET SDK (8.0.401 and 8.0.400), Visual Studio Code consistently fails to detect the installation. I was removing all .net installations also using recommended tools from documentation, and installing .net SDK again from scratch. Nothing changed the situation. I have been using"dotnet workload repair" , "dotnet workload clean","dotnet workload restore", "dotnet workload update", nothing seems to work. Here are the sample logs always ending with same error Writing workload pack installation record for Microsoft.NETCore.App.Runtime.Mono.maccatalyst-x64 version 7.0.20... Warning: Workload garbage collection failed with error: Workload version 8.0.400-baseline.24375.2 was not found.. When I have SDK 8.0.401 installed, I have had similar error. I suspect that a previous installation of Visual Studio 2022 (which included .NET 5 and .NET 6) might have left behind some configuration or components that are interfering with the current setup. Here are the steps sudo dotnet workload install maui dotnet workload list Result: No entries on the list. However when I run "sudo dotnet workload list" I see: Installed Workload Id Manifest Version Installation Source -------------------------------------------------------------------- maui 8.0.72/8.0.100 SDK 8.0.400 On VSCode I have the error on.net maui project (created from template) ".NET MAUI SDK: not found. Please check the .NET MAUI output window for more info." The output looks: .NET MAUI Workloads: Path: /usr/local/share/dotnet Version:8.0.400 Suggested Workloads tobeinstalled: Workload: maui-ios Workload: maui-android .NET MAUI SDK verification failed. Please tryrunning`dotnet workload restore` from your project's directory and reopen the solution. I also get an error from C# dev kit: "Failed to restore solution." The output looks: Determining projects to restore... /usr/local/share/dotnet/sdk/8.0.400/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5):errorNETSDK1147: To build this project, the following workloads mustbeinstalled: maui-android [/Users/pbaturo/Repos/dotnet-learning/MauiFirstApplication/MauiFirstApplication/MauiFirstApplication.csproj::TargetFramework=net8.0-android] /usr/local/share/dotnet/sdk/8.0.400/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5):errorNETSDK1147: To install these workloads, run the following command: dotnet workload restore [/Users/pbaturo/Repos/dotnet-learning/MauiFirstApplication/MauiFirstApplication/MauiFirstApplication.csproj::TargetFramework=net8.0-android] I have completely no idea why I have this issue. Can anyone help me with overcoming this, please?pbaturoSep 01, 2024Copper Contributor358Views0likes0CommentsIs it possible for the dotnet command to not publish some files?
I've received an unusual request from some users of anASP.NETCore app. I'm using thedotnetcommand to clean and publish the solution, to a server in our network, using a GitHub self-hosted runner on another server. They don't want thedotnetcommand to publish the "appsettings.json" and "appsettings.Developer.json" files. Is there a way of preventingdotnetfrom publishing some files? Here's the code snippet I'm using from the YAML file: - name: Clean build run: dotnet clean $env:Solution_Name - name: Publish app run: dotnet publish -c Release $env:Solution_Name /p:PublishProfile=VaccineRegDevProfileRod-FJun 19, 2024Iron Contributor186Views0likes0CommentsBest Practices
Hello All: This question is for those of you who develop in .Net/Visual Studio. When building web facing user interfaces, what are your preferred tools for speeding up development time (and why)? Thanks in advance for your feedback.AccessDevJun 12, 2024Copper Contributor163Views0likes0CommentsAny recommended UI/UX framework?
Hi, I am new to .net. May I know if there is anyUI/UX framework that is good for .net webpage with search criteria? I would like to have a textbox with the following input methods: - Exact text match - Wildchars * - Copy and paste the list - Enter number range Thank you!TinaAvtJun 09, 2024Copper Contributor255Views0likes1CommentMicrosoft.VisualStudio.Diagnostics.ServiceModelSink.dll installed by Visual studio 2022 has issue
I am using VS2022 community with latest update 17.9.6. I installed the component "Windows communication foundation" from VS installer. After it is installed, windows security reports this dll as suspicious and gives error "windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly" when I ran my WCF application (which opens a service host). I debugged it further and noticed that machine.config is added with below: <commonBehaviors> <endpointBehaviors> <Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior/> </endpointBehaviors> <serviceBehaviors> <Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior/> </serviceBehaviors> </commonBehaviors> I then checked the digital signature associated to this dll (in GAC). I see that the certificate validity is no more valid. Now questions here are: 1) Can someone confirm if validity of the certificate is the reason of error"windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly"? 2) If yes, how do we get new version of this dll with valid signature? NOTE: I am using windows 11 home with latest updates.harshbodhiApr 16, 2024Copper Contributor285Views0likes0CommentsPowerPivot Excel Odata - No Saving of Password and User ID
Hey guys, I want to work with PowerPivot in excel and I got an URL with Odata from my company. So I came to this Point here when I click on advanced : (Screenshot is in german) Here I should change integrated security on "BASIC" and then just enter password and username. When I do this and clicking ok, it is not saving these details of user id and password and then because of this I got no connection and can not go on further. I did this several times but It never saves the entered information. I also entered the right url and in this little window the test connection is successfull. but again, when i click on ok and try to test it, it says i have to enter user id and password.n4styratJan 21, 2024Copper Contributor1KViews0likes1CommentWindbgTime-travel C# .NET 8.0 app: why is RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
I picked up a couple of months old Visual Studio Solution and found I needed to make a few modifications to enable Time-Travel debugging. After resolving a few hurdles (startup module defined, profiling taking place in the Visual Studio solution), I finally configured the app to be x64/DEBUG. Yet even that would stop in the DirectX layers. Finally, not wanting to make any major changes to the app, I used: RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly; Then the app's dialog/window appeared when being time-travel-debugged.. Obviously, this stops the DirectX use of hardware, but I am curious - is there a better way? Sam ps, if need I fan send the call stack that the app stops on with out this line in the Application_Startup routine.srwarnerDec 13, 2023Copper Contributor352Views0likes1CommentLinux, 'strip' corrupt self-contained publish binary
For your knowledge (i search this community but i don't find anything related), Linux command strip -S --strip-unneeded "my_app" performed on a binary created with dotnet publish --runtime linux-x64 --self-contained true -p:PublishTrimmed=true -p:EnableCompressionInSingleFile=true corrupt the binary. Can be reproducible with any CLI program like the classic Hello World. ----------------------- In any Debian-derivated, when building a package (.deb), it will require to add an exception (in /usr/share/lintian/overrides) unstripped-binary-or-object in Lintian, otherwise .deb will throw an ERROR when installed (Lintian are called from package manager to validate the .deb package before install) ----------------------- In any Arch-derivated, makepkg perform a strip automatically ==> Tidying install... > Stripping unneeded symbols from binaries and libraries... resulting in a error when launching the binary: "Failure processing application bundle; possible file corruption." This can be avoided with options=('!strip') in PKGBUILD.Clodo1515Dec 11, 2023Copper Contributor302Views0likes0CommentsMSB4011 warnings
Got a project with 2 of these warnings and it seems there's nothing I can do in VS to fix these. Where does it come from and how to solve it ? All I see when showing all files is a Imports folder with subfolders that seems to be links and there's nothing I can do with them in this project. The weird part is that from 12 projects in my solutions only this project exhibit this issue. I wish I could remove these warnings or know how to fix them Severity Code Description Project File Line Suppression State Warning MSB4011 "C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk.Publish\Sdk\Sdk.props" cannot be imported again. It was already imported at "C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk.Worker\targets\Microsoft.NET.Sdk.Worker.props (50,3)". This is most likely a build authoring error. This subsequent import will be ignored. waInvoiceSystem 1 Severity Code Description Project File Line Suppression State Warning MSB4011 "C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk.Publish\Sdk\Sdk.targets" cannot be imported again. It was already imported at "C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk.Worker\targets\Microsoft.NET.Sdk.Worker.targets (24,3)". This is most likely a build authoring error. This subsequent import will be ignored. waInvoiceSystem 1SolvedMarc RousselNov 30, 2023Iron Contributor1KViews0likes3CommentsHow to install android apps on the computer by downloading apk files form internet in window 11?
I know how to install android apps in computer but there is a problem disturbing me. It can only be done in window 11. Steps to do it-download windows subsystem for android form Microsoft store>Open windows subsystem for android>turn on developer mod>get the Ip address below the developer mode settings or the Ip address in the developer mode turn on off>Turn on Visualization Technology form your BIOS>download SKD platform tools -https://developer.android.com/studio/releases/platform-tools>go to your download folder and extract this developer file and name it as adb and save it>open the adb folder>open platform tools>click the tab at the top bottom where it shows the file location>type cmd>type adb connect and the IP address you got>it will connect but it will show you that it is not connected>keep typing adb connect and your IP address and it will show already to connected to this and this>download a apk file and open the cmd again form the same process of platform tools>go to download folder>cops as path of the apk file>go to cmd>type adb install and paste the path of the apk> it should get installed but the problem showing is adb: error.Ravi_777Sep 25, 2023Copper Contributor2.1KViews0likes1Comment