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.
Related
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.
This question already has an answer here:
When do i need to download the .Net core Runtime?
(1 answer)
Closed 2 years ago.
So a really basic question:
I wrote a c# console app. Not completly basic. There several classes outside the Programm.cs.
Now I wanted to show it to some friends so I send them zipped folder and and told them to go into \bin\Debug\netcoreapp3.1 and open the .exe file.
This works for me, but not for 2 of my friends who tried it.
A new windows opens and closes right away.
They seem to have the .Net framework installed.
Is there a way to open it without having install visual studio?
Thanks
Solved:
The issue was that .Net Core Desktop Runtime wasn't installed
Thanks everyone
You should publish your project. You will find the option to publish based on your visual studio.
Once your code is published, open \bin\release\netcoreapp3.1\publish..
And share this complete published folder
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
A new year, new releases, and like always new aggrevation. The combination of Visual Studio 2019 (16.1 release) and Resharper 2019.1.1 is deadly for our not so large solution (10 projects & 6 test projects) in 1 solution .NET Core 2.2. Not combined with frontend (javascript/typescript).
When opening solution, VS hangs and uses A LOT of CPU, and it now even has come to a point that i need to disable resharper to continue developing.
And not only disabling resharper, i also needed to disable code lens in Visual Studio, because ServiceHub.RoslynCodeAnalysis service was still taking a lot of CPU, found that on (https://github.com/dotnet/roslyn/issues/19205)
I already found this article on Jetbrains site: https://resharper-support.jetbrains.com/hc/en-us/articles/206546919 , but this time i can't figure out what the problem is.
I also found this on microsoft developer community: https://developercommunity.visualstudio.com/content/problem/521943/vs-2019-high-cpu-and-memory-usage.html :
status 01/06/2019 - NO SOLUTION
I also created my own ticket on the developer community, will keep both sites in sync: https://developercommunity.visualstudio.com/content/problem/593963/visual-studio-2019-version-161-slow-and-consuming.html
status 04/06/2019 - TICKET CREATED
Anybody in the community with the same issue and some help on how to solve it.
It's not hardware related ot OS related, probably some settings from both systems that mess up each other.
For more detail:
Visual Studio: default installation
Resharper: default installation
Codebase: rather small: a few hundred tests / a few hundred classes
Hardware: Parallels on MAC: with 10GB RAM; 8 CPU machine (been doing
that for years, i am only having problems since upgrading to 2019
versions)
No frontend projects included
Only API in .NET Core 2.2
No continuous testing
Solution wide analysis off resharper disabled
No fancy plugins, no custom rules, no metrics (all that is done on Azure Devops when code is being build ETC
>
Update: 25 June 2019 (and it is running again at a usable speed)
No info on ticket from Microsoft website
Executed these things
Visual Studio 16.1.3 update Reshaper 2019.1.2
update
Codelens disabled
Disabled defender for these processes (be aware about what you do, no scanning will happen in these processed):
Code.exe & Node.exe: we have an angular frontend ConEmu64.exe &
conhost.exe & dotnet.exe : we have .net core api running in kestrel
sqlserv.exe: we have a sql backend Also excluded my sourcefolder
from defender
Many thanks
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What options do I have for converting PHP to C#/ASP.NET?
I had a really tough time finding information on this, so I've created this question/answer to be a one stop shop for those of you who have also hit this kind of stumbling block.
In short, I will explain the different tools I'd found, what worked out for me, and also link you to some conversion guides.
Microsoft's PHP to ASP.NET Migration Assistant
http://www.asp.net/downloads/archived-v11/migration-assistants/php-to-aspnet
The Good:
Microsoft has a PHP to ASP.NET Migration Assistant! It's not perfect, but does fairly well despite the differences inherent in the languages. It doesn't create the codebehind for you, but rather, puts generated C# in a script tag in an .aspx file.
The Bad:
It was a challenge getting this working because it's a little old and required me to install Microsoft .NET Framework 1.1 Redist, and Microsoft .NET Framework 1.1 Service Pack 1 in VS2010 in order to install the Migration Assistant itself.
Some of you may have trouble with these Framework installations. If you do, I found a handy dandy guide right here: http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/how-to-install-net-framework-11-in-windows-7-64/eb1e6232-e874-432e-ab43-17660e25e43d?page=1&tm=1345067625733
Also, after I'd gotten it to install, it wasn't appearing in my conversion tools in VS2010. So, I had to do this:
http://forums.asp.net/t/1530808.aspx?no+PHP+to+ASP+NET+Migration+Assistant+in+MS+Visual+Studio+2008
Re: no PHP to ASP.NET Migration Assistant in MS Visual Studio 2008
Apr 11, 2012 10:15 PM|LINK
Once you install the Migration assistant open a DOS window thru
CMD.exe In the dos window : Change directory to: CD C:\Documents
and Settings\spatel>cd C:\Program Files\Microsoft Corporation\PHP t o
ASP.NET Migration Assistant Then type in the following and click enter
: PHPCONVERT.EXE C:\PhpSourceDirectory /Out C:\ASPoutputdirectory
Open the project from within Visual Studio 2008 and choolse to
convert. Note: in the step 3 above C:\PhpSourceDirectory is where I
had my PHP files stored and similarly C:\ASPoutputdirectory is where I
wanted my ASP.net output to go.
PHPCONVERT.EXE has other options that you can explore by typing in
PHPCONVERT.EXE /?
When I saw this forum ...I gave hope but PHPCONVERT.EXE was a life
saver , my work effort reduced by 90% for the conversion.
The latest version of the convertor is available #
http://www.asp.net/downloads/archived-v11/migration-assistants/php-to-aspnet
I'll note that these command lines needed tweaking for an x86 machine. PHPCONVERT.EXE might be in Program Files(x86) instead of Program Files.
Overall, it took some time, but that's what I had to do to get it working, I hope that this helps you out of your current bind.
Phalanger - A PHP Compiler for Visual Studio
If you want PHP to compile in your .NET app try Phalanger http://www.php-compiler.net/
I was interested in this, but ultimately decided against it due to licence fees. However, they are on GitHub if you want to check it out.
https://github.com/DEVSENSE/Phalanger
Converting PHP Yourself
Here are some resources for learning PHP basics, and a bare-bones conversion guide.
http://learnxinyminutes.com/docs/php/http://www.codestore.net/store.nsf/unid/BLOG-20100603-0518
Thanks everyone! All the best to you, and happy coding.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am working on a C# project using VS 2012 installed on windows 8 this afternoon. It works well and I upload my code to TFS before I left for home.
But when I download and open this project using VS 2012 installed on windows 7. I got the error message below.
The C# project is targeting ".Net Framework, Version =v4.5",which is
not installed on this machine. To proceed, select an option below.
Change the target to .Net Framework 4.5. You can change back to ".Net Framework, Version=v4.5" at later time.
Download the targeting pack for ".Net Framework, Version=v4.5". The project will not change.
Do not load the project.
I am sure I have installed .Net Framework 4.5 on my windows 7 laptop.
Now, I cannot load my project. Any one knows how to solve this problem?
Many thanks!
--------------- updates--------
For people who have the same problem:
I uninstalled VS 2012 and .Net Framework 4.5 and re install both of them. The problem is solved. Now I can load my project.
Right-click your project and click in "Properties". In the tab "Application" see if you have the option for the 4.5 framework in the "Target Framework" dropdown list. If you have it, just select it and try to build your project again.
If you don't have this option, go to "Programs and Features" in Windows 7 and make sure you have .NET Framework 4.5 installed. If you have it, then try repairing your installation of VS 2012 in this same menu and verify again your options in the "Target Framework" dropdown list.