Dotnet new project cannot run [closed] - c#

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I (almost) try to get an helloworld with dotnet cli on Linux. In fact I simply try to create a MVC project.
I installed (and reinstall multiple times during this process) dotnet-sdk-bin from AUR.
dotnet new mvc -n foo
cd foo/
dotnet run
Result :
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
No frameworks were found.
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&>framework_version=3.1.0&arch=x64&rid=manjaro-x64
dotnet --info :
I also tried with and without dotnet-runtim-bin and dotnet-host-bin but the result remain the same. Also found this thread on github but it didn't help me that much.

You need to install the runtime to the AspNetCore, I'm sure that you have the runtime to the .NETCORE, but the Asp is a separate runtime and you need to install, I share the URL https://dotnet.microsoft.com/download/dotnet-core/3.1
NOTE: Remember before you type dotnet run is a good practice dotnet build it's help you to find any break references in your code or any lost library.

Related

I got this error while cloning and running a .NET project frm github [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed last year.
Improve this question
i'm not a proffessional programmer in C# an .NET, i tried to clone and run this git repository and i got this error!
You don't have the correct version of .NET installed.
You need the 3.1 runtime but you currently only have 5.0.13 and 6.01
You can download the version you need here: https://dotnet.microsoft.com/en-us/download/dotnet/3.1
or you can install it with the visual studio installer.

Problems with using .NET 5 [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I wanted to play with new features of .NET and C#.
In order to do that, I downloaded newest .NET SDK and .NET runtime and installed it successfully.
Then I tried to create app with new features and failed, as I couldn't set target framework to .NET 5.
So I googled for that and found that I need to enable "using previews of .NET SDKs" in Visual Studio's Tools (Preiview Features tab).
After that, when I created console project, it set my target framework to .NET 5.0, I got this section in my csproj:
<TargetFramework>net5.0</TargetFramework>
Now, when I try to build, I get this error:
The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
I tried to search anything about this, but I just run into the same articles suggesting enabling using preivew of .NET Core SDKs.
Also, my VS version is VS Studio Professional 16.7.6 (as far as I remember, other suggestions were about updateing VS to 16.6 or newer).
In terms of development with Visual Studio, .NET 5 requires VS 2019 16.8 or later. I'm using it with .NET 5 without problems.

Visual studio ".exe" built application cannot open in other computer [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I've build a visual studio 2015 project into ".exe" and it worked on my computer and other computer. And then after i update my visual studio 2015, and build the program again, the ".exe" won't open on other computer, but it working as usual on my computer.
Does it have anything to do with the update ?
I've tried it on 3 others computers, on windows 7 it shows error clr20r3. But on windows 10 it doesnt show the error message
UPDATE : Sorry for not being specific. After googling i have found many similliar problem and it have something to do with the Net Framework. I've check my project application project target Net Framework it is 4.5.2. And i already create a setup wizard for it and it's include Net Framework 4.5.2 offline installer. I build it everything fine, then i try to run the Net Framework 4.5.2 installer on other computer, it says Net Framework 4.5.2 already updated/installed. But my app still wont open on that computer, only a loading (circle) symbol, but then the app won't open.
Without more information we cannot guarantee we'll provide a correct answer.
You should check for:
.NET Framework (in which you built the project with)
Configuration files
Dependencies
As we only got the information that it's "crashing", we cannot guarantee it will work.

Is .net 4.5 a major upgrade to 4.0 or is it just a matter of including updating .dll? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
If my server is currently setup with .net 4.0, is 4.5 a major release or is it something like .net mvc where I just have to include the mvc related dll's in my /bin folder?
.NET 4.5 must be installed on the server. It is not simply a .dll to include. You do have to specify 4.5 in your web.config to use 4.5 features. You only have to include the dlls for packages you use that use the 4.5 framework. I recommend using NuGet package manager to handle this so you don't have to do it manually.
However, in IIS, 4.5 does not appear as a .NET version for application pools and uses the 4.0 runtime. In that sense, it is similar to 3.5 where you need to set your app pool to version 2.0.

Using System.Reactive in .NET 3.5 (in a shipping product) [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
This question is no longer relevant now that microsoft have released a proper version of the Rx framework on devlabs
Original Question
I've downloaded the Silverlight 3 toolkit and rebased System.Reactive.dll to work on the .NET 3.5 CLR, and am really enjoying using it.
What I'd like to know is, can I ship it?
The codeplex site for the SL toolkit states that the license for the toolkit is MS-PL
I've poked around with it in reflector and found no additional license information
I'm thinking that I may be able to ship it under the MS-PL license, but at the same time it feels like I shouldn't, because I had to rebase the dll, and because I've still yet to see any official word from Microsoft about releasing the reactive framework.
The alternative is either to just do without IObservable's until .NET 4.0, or write my own ripoff version of System.Reactive - I'd probably end up going with writing a ripoff version, even though this would waste some time.
Has anyone else thought about this issue, and is anyone else using/shipping the dll?
MS-PL "grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create" (emphasis added). I'm not a lawyer, but that seems pretty explicit.
(This is subject to some other criteria laid out in part 3 of the licence but none of them seem to inhibit derivative works, they're more about reproducing copyright notices and not suing anybody when your Rx-based nuclear power station blows up.)
Now the Rx is available directly for Framework 3.5 SP1, Along with downloads for .NET Framework 4.0 beta and for Silverlight 3.0
Download the version you need from here http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx

Categories