I developed a C# project in Microsoft Visual Studio 2017 in .Net Core Environment. I works properly on my Windows 7 system. I want to run this project on a Linux system. I havent worked on Visual Studio code in Linux before. I copied the debug folder of my project on the linux system. But it is not running .
Any suggestions on how to approach the problem to run the project on Linux.
Related
I have created a console app using C# and .Net core version 5 on Visual Studio IDE. I understood how you can publish this app for the same OS. So now I can share my C# project as a .exe with all my friends. But all my friends don't have a windows. Since this is a console app, it said that I could share it with anyone having Linux/Mac. Also, I only have windows.
So the main question: How do I export my .cs project in such a way that I get files for Mac and Linux with just a windows machine? Also is it possible to do this without using non-Microsoft services since it poses security risks?
I have developed a C# Desktop Application application on VS2013 that has CEF(Chrome Embedded Framework) in it. The Application is developed on .NetFramework 4.5.2 with Target Platform set as x64 (It has to be x64 otherwise CEF doesnt work)
The App runs on the developer PC but when i install it (using a setup) on Clients PC and simply run it by clicking the installed .exe , the mouse pointer loads for a few seconds and then nothing happens. It doesn't appear in task Manager either. I have tested it by installing another C# Desktop app developed in the same environment and configuration but without CEF , and it is working Fine in all the client's PC's.. Is there any problem with the CEF?
Following are the Specs of Developers PC and the Clients PC.
Developers PC : [Application Running]
Windows 10
OS = x64 bit
Visual Studio 2013 with .NETFramework 4.5.2
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Another PC 2 : [Application Running]
Windows 7
OS = x64 bit
Visual Studio 2013 with .NETFramework 4.5.2
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Clients PC 1 [Application NOT Running]
Windows 8.1
OS = x64 bit
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Clients PC 2 [Application NOT Running]
Windows 8.1
OS = x64 bit
Visual C++ 2012 Redistributable Package
CEF .dll files included and placed in Debug Folder
Any help would be highly appreciated. Thanks a lot.
There is a tool built into windows called sxstrace.exe that can help determine what is missing.
1) Run something like:
sxstrace trace -logfile:mylog
2) Try to launch the application
3) stop the trace (press any key in cmd window)
4) parse the logfile like:
sxstrace parse -logfile:mylog -outfile:mylog.txt
5) view output file for errors
EDIT: In your case, very likely missing some CEF files. From their documentation:
The following files, in addition to the usual .NET project files,
should be present in the bin directory. They should live side-by-side
in the same directory as the CefSharp.Wpf.Example.exe file, except for
en-US.pak which is in a locales subdirectory:
cef.pak devtools_resources.pak icudt.dat libcef.dll /locales/en-US.pak
I hope you are not releasing a Debug version of your application. That might explain the dependency on MS VS being installed. In my C++ experience debug builds sometimes require some DLLs that can only be found in a Visual Studio installation.
Another debugging idea: download a Sample Application and place just the executable (cefclient.exe) into your project installation. It is important to fetch the version that corresponds to your CEF version. Try to run the simple app. If it works, then the required binary dependencies and assets are there and the problem is somewhere else.
I have a windows XP dev environment for C# application project combination with native DLL. Now I am trying to migrate to Windows7 using last visual studio 2015.
My problem is native DLL is trowing System.DllNotFoundException in windows7 dev environment, so it means I cannot create setup file with enhancements and new features.
Note: I got old windows xp setup file that will install in windows 7. same native DLL work perfectly fine, if that old setup file is installed.
I have no clue how setup file was created but it was created with wise installation studio
The same native DLL files working after old application install and native DLL are not working in dev environment and giving System.DllNotFoundException.
I tried with elevated permissions but no luck.
I am thinking of possible solutions one DLL registration I have no idea how to do that.
Any suggestion is well come
Thanks
I have made a windows form application using Visual Studio 2010 in Windows 7.Every thing is working fine into my System.I have build the application on Visual studio 2010 and it is ok.Application.exe is getting created under the Bin in Release Mode of the Visual Studio.
Now i am trying to launch this application On Clients PC which is Windows XP but it is giving following.
Application has encountered a problem and needs to be closed.we are sorry for inconvenience.
I am not getting the reason for this.Please help .Thanks in advance.
Problem 1: i'm suspecting that the .NET Framework version with which you built the Application is heigher than what client is using.
Solution 1: try to build your appliction with the client compatible .NET Framework version.
Problem 2: You might be building your application with X64 option in build settings.
Solution 2: change the Platform Target of the Application from X64 to X86 from buid settings and rebuild your application.
We have developed a web application in windows using visual studio 2005. Is it possible to deploy that application in linux using crossover. Is it possible to run crystal reports in asp.net using crossover.
I have used wine, and cross over and even mono. But it was not possible for me to develop crystal reports web application in ubuntu.
But I am able to develop windows application using c# with mysql database as backend and have used crystal reports. But it doesn't work for ubuntu
Please look at the below posts for more details:
how to run crystal reports in ubuntu linux
Can't connect to MySQL for .NET application deployed in Wine using Ubuntu
http://www.talkonsomething.com/2009/11/how-to-connect-mysql-database-from-windows-xp-to-ubuntu/
Yes.
Well, maybe.
You will probably have more luck with Mono than wine, but either way you're looking for pain.
Good luck.
You can now install visual studio code in Linux and compile it there. Microsoft's Visual Studio Code is an Integrated Development Environment (IDE) with support for Mac, Linux and Windows.
As Shoham mentioned, Microsoft recently released Visual Studio Code, a lightweight, cross platform code editor. However, this doesn't exactly get you all the way to fully deploying .NET code on Ubuntu. In order to do that you also need to install the CoreCLR and the ASP.NET 5. I've been trying to do exactly this in OS X, which should be very similar, but haven't quite gotten it working yet.