Hey all I am pretty new to the "old" WinRT (Windows Runtime) framework and I am unsure about one thing so far. How do I run the app outside of Visual Studio? In Visual Studio when ran using "Local Machine" it compiles and runs just fine. However, if I try the .exe that it produces outside of Visual Studio then nothing happens - no error and no app screen...
Like I said, in Visual Studio it compiles and runs:
So when I go and execute the NitroCarEntertainmant.exe outside of Visual Studio then nothing happens. What am I missing that seems to be something that it needs to run? I know a store app has a extension of .Appx so not sure if I have to package it up in some way or if this .exe can work - I just don't know how to make it work myself - with some type of trick/hack/bypass?
Help would be greatly appreciated!
You need to create a package and install it before running. On Windows 8 and 8.1 you'll need a developer license for this but on Windows 10 you can install it normally however you added to sign it with a certificate and import it before installing.
Related
Having this issue with visual studio for Mac - Can't load my configured environment variables.
If i run the app from a Terminal it works, but it doesn't if i run it from Visual Studio for Mac.
I added my variables to:
.bashrc
.bash_profile
I am using Visual Studio v8.7.8
(Yes, i tried restarting visual studio, even restarting the computer).
Any help is useful.
Thanks.
--EDIT--
I created the same post in Microsoft's dev community. Hopefully they fix this on the future. Stick to running VS from a Terminal for now.
So, unfortunately Visual Studio for Mac does not support using environment variables defined via bash or zsh (yet?...).
There is a hacky workaround by launching VS from a Terminal
/Applications/Visual\ Studio.app/Contents/MacOS/VisualStudio &
Launching it this way will allow VS to access user configured variables.
To make it easier to remember, an alias can be created by:
alias vs='/Applications/Visual\ Studio.app/Contents/MacOS/VisualStudio &'
Just remember to add this line to .bash_profile and .bashrc
Here is a Medium article on how to edit these files.
Here is a Blog post describing the VS issue.
My UWP app is building,rebuilding and deploying fine but it is not running.
Although, it works fine in other system.
I am using Visual Studio professional 2015 since 5 month to build this project and all of a sudden it has started showing this.
When i try to uninstall the app it doesn't give any option to uninstall also.
I have tried restarting the system and cleaning,rebuilding the project file but nothing seems to work.
Thanks in advance.
Causes:
It is a known issue in Visual Studio 2015.
For more info: unable to activate Windows Store app
Solution:
Update to Visual Studio 2017
For other solutions:
Unable to activate windows store app the app didn't start
Unable to activate Windows Store app: The App1.exe process started, but the activation request failed with error ‘The app didn’t start’
It seems like the directory or the folder were corrupted so that is why every time when i was running the application it was installing in a non packaged version therefore i was not getting the option to uninstall it properly.
I tried by deleting the whole folder which created in AppData folder of the Users but it didn't work.
So finally i created a new folder and moved my solution over there.And everything is working pretty much fine now.I thought we could solve this problem by repairing Visual Studio but since this issue is not related with Visual Studio and moreover it takes half of your day to repair Visual Studio so only moving the project to a newly created folder would be a good idea in this case.
I inherited a C# app written in Visual Studio 2010 professional. From the compile done in VS 2010, the C# app works perfectly in Windows XP and Windows 7.
Now I am about to install Visual Studio 2013 for the first time tomorrow, and load the C# app.
I have 2 immediate goals:
Upgrade my project to work in VS 2013 Professional. I am not sure
if/what obstacles I may run into here, but if anyone has any suggestions I am all ears.
More importantly, I have 2 new prospective users for my app - one wants to use it in Windows 10, the other in Windows 8. However, I don't know the steps I
have to take to make my C# app work for these newer operating
systems. Are there specific steps I will have to take (or settings to
assign) in Visual Studio 2013 so that my C# app will work for Windows
8 and Windows 10? If someone knows the answer to this, can you please
make it clear whether I should be making separate builds for each
target operating system, or if the steps you suggest will allow me to
build this for all 4 operating systems included in the same build?
Thanks very much, really appreciate any input.
Adam
For the most part the project should auto update just fine. You might want to make a back up incase it upgrades incorrectly and it doesn't create a back up on its own.
The boxes you deploy to might need a visual studio 2013 redistributable which will be apparent if they crash when opening on the deployment machine
I am running VS Code on Ubuntu 14.04. I am trying to run a C# web application which my team can run just fine in Visual Studio on Windows. The problem is that Code gives me an error message, "/app.js does not exist". No such file exists in our project, and I think I want to run it using "Startup.cs" instead, but despite trying to change the 'launch.json' file accordingly, another file that my team does not have, I still cannot get my project to run. Has anyone experienced a similar problem?
The .NET environment for Linux is currently in a pretty early state. Thus you can't do everything on Linux that you can enjoy on Windows.
If you want to develop an ASP.NET application then you should read this guide on how to setup the environment to work with Visual Studio Code.
If you have a C# application that can already be compiled and run on Linux then you can
create a script file which compiles the project and runs it afterwards
and let this script be executed as the build task in Visual Studio Code. Here is how to do it: How to prepare/configure development environment for C++ projects in Visual Code Editor?
Just for your interest: You can't currently debug C# projects in Visual Studio Code.
Perhaps you can try to open the project with Monodevelop? This is an open source IDE for C# that runs on linux. It is compatible with VS projects.
You will probably need to also install Mono (the open source .net runtime) to run Monodevelop.
You may even be able to run your web app with the Mono runtime, although it has been always a bit behind the official Microsoft .net runtime (you may get 'class not found' exceptions if your code uses libraries that are not yet implemented in the Mono runtime).
I've written a program that does extensive use of EasyHook. The program works just fine if I run it from Visual studio ( either in debug or release mode), but it stops working ( or better, it stops hooking) if I run it from the release folder.
The question is simple, why? I run both visual studio and the application with the same user, on the same machine, so there should be no difference...
check in your debug folder if you have any files that are not inside release folder (like .dll and so on) if so copy them to release folder! and if working then, then you probably use some external dll's or some references something like that... and you will also have to include them to your setup project!
I run both visual studio and the application with the same user, on the same machine, so there should be no difference
I can make a random guess, since you don't provide much detail, and no error messages in your question.
Visual Studio 2008 and 2010 runs elevated (if I recall correctly).
If you have not disabled UAC, then you will need to run your application as an Administrator.