Is there any way to make an .exe file run on another computer without installation ? .
The app is quite simple without any resources except one picture.
It has one form, one button and on Form_Load it needs to show picture.
Do I need to make an installation for that ?
No, what you need to do is to first add the picture to the project (on the menu system click Project | Add Existing Item . . .) if you haven't done that yet, and then click on the file in Solution Explorer and set its Build Action in the Properties Window to "Resource." This will ensure the picture is written into the exe file when you build the application, and you won't have to worry about copying it along with the application.
Select the "Release" build configuration, and then click Build | Rebuild on the menu system to have your application copied to the Bin\Release folder of your project folder. From here you can copy and run it on any computer that has .NET installed.
Related
When we add a file, create a folder, rename a file or folder it lasts for seconds until this is done.
Even when directly doing those changes on the folder structure, it takes seconds in VS2019 to see them.
In other projects, part of the same solution we do not have this problem.
Any suggestions?
STEP 1 Clear Cache
Win+E to open File Explorer
Click tab "File" and "Change folder and search options"
Click Clear
STEP 2 Minimize Index scope
I. Open Windows Settings and Select "Indexing Options"
II. Click "Modify"
III. Unselect Driver C:// and others
You can do the dotnet restore in a command prompt in the web application directory. This solved the long freezes.
Clean this directory:
%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files
You can exclude extra folders by adding the property to the .csproj file, like <DefaultItemExcludes>$(DefaultItemExcludes);ClientLib\node_modules\**</DefaultItemExcludes>
references here:
https://developercommunity.visualstudio.com/content/problem/35570/create-new-file-and-file-rename-are-extremely-slow.html?page=1&pageSize=10&sort=votes&type=problem
https://learn.microsoft.com/en-us/previous-versions/ms366723(v=vs.140)?redirectedfrom=MSDN#compilation-folder-location
ASP.NET Temporary files cleanup
I had slow file add, delete, save, and slow folder add.
I just fixed mine, however my project also has React frontend, the culprit was the "node_modules" folder. I had moved the project from another drive and VS2019 included it as an active folder. Excluding it from the project brought everything back to normal. Since my project is .Net Core 3.1 + React - doing this might serve others - not sure if the OP is using node.js
In Solutions Explore --> Right click node_modules folder --> select "Exclude from Project"
If you are using source control (git) will still work ok as will the rest of your application.
Honestly, I don't fully understand my question, but hopefully I can still be fairly clear about it.
I just wrote a simple project in Objective-C/Xcode. It looks like Xcode generated an executable in a folder called "Debug" and when I double-click on it, it opens a terminal window and runs fine. However, while running, it reads from a text file in the same directory that it's in. So if I want move the executable to a different location, I also have to move the text file to the same location or it won't be able to find the text file.
My question is... when I download an application on my computer (like Google Chrome or Evernote), it comes as its own file and I can place it in any directory I like; there are no associated files I have to move whenever I move the "executable". Is there a way to generate a clean application like this using Xcode?
ok so i made a couple of projects in VB2010 and i want to finally make them a standalone executable , as i'm still a beginner in VB ! i don't know if getting the .exe file only from "bin/debug" or i should really publish it then need the applications folder and the setup [because it's gonna be a lot better if i don't have to do the second one], anyways i tried to get the exe file then move the project folder to another drive , and it work , i know that to run the exe in other computer i'll need framework , [as far as i know my resource files are embedded into the exe] but if i need framework only , i guess runing it on computers that doesn't have it will ask them to download it ! i don't mind that , or that option comes with publish ,and i also really need the manifest file to run it normally ,
I actually don't know much about this so can you pleas tell me what i exactly need so my .exe files can run on other computers
sorry for taking some of your time , and thank you for reading this :D
Set your Solution Configurations to Release, build a solution (Ctrl+Shift+B) then navigate to your bin/Release folder and there you will find your exe file ready to be shipped. You can ship that exe as is, or you can wrapp it up in an installer application. If your application has some dependencies then shipping the exe file will not be enough.
You can change your target framework by goin' to Project/Properties.
Find the .exe in \\Your app\bin\debug\your app.exe
What you can do,open the project as if going to edit it, just go to "Project" then "Publish(Whatever-your-work's-name-is).vb at the bottom. Then use the wizard to finish. At the end, say you saved your exe on the desktop, three files will appear.
"Whatever-your-work's-name-is".exe And its icon shape varies.
A folder called "Application Files"
And a "setup.exe" Its icon a like a CD on something.
For the first time, click on setup.exe and open the app. From then on, the "Whatever-your-work's-name-is".exe will open normally. I have a website where I publish these things for fun, "tgamer.myfreesites.net", and downloading will only download all three in a zipped folder. The website is not awesome, but it's alright.
The thing is, the setup.exe and application files can be in a zipped file. You only the actual exe from the second opening and onward. This option makes it downloadable, like what I want. For you, choose the best for you, but remember downloading only the exe will not work.
I have many different versions of my app. Each one is a separate IntelliJ project. Every time I open a new one, the list of configurations starts blank:
The annoying thing about this is I deploy to 1 VM and I have to copy and paste the debug configurations each time I want to test a different version. IntelliJ makes this dialog modal per IntelliJ Instance, so I can't copy and paste the fields between Project Instances.
I end up taking a screenshot of one configuration and copying the fields by hand into the other project. It's a pretty primitive solution. Is there a more convenient way to get a run configuration from one project to another?
I'm using IntelliJ 13 on Windows 7.
Can I share settings for IntelliJ Idea across different projects? may have the answer to this, but the question is different. It's about window layout. Therefore I don't consider it a duplicate.
The best way to do this is to click the "share" checkmark next to Name field when you edit/create the configuration. You can get to this Dialog with Run > Edit Configurations.
The share check-mark pulls the setting out of your workspace.xml and instead puts it in the directory .idea\runConfigurations. This is designed so you can share the setting with others.
You could copy this file and put it in the same location in all your idea projects.
However, in the future, you might want to consider using source control branches for app versions rather than separate projects. IntelliJ handles these very well.
UPDATE (June 2021):
IntelliJ now puts this in the .run folder as its own file, no longer in .idea/runConfigurations.
Run configurations are stored in .idea/workspace.xml by default. First alternative is to share this file but it is not feasible because you also share a lot of unnecessary configurations.
As already said, the first step is to check "share" option to separate run configurations from workspace.xml.
After that, I recommend adding runConfigurations to source control. But the main problem is, probably you have already marked .idea folder as ignored.
You can unignore the folder by configuring your source control system. For example, if you are using git, you can change .gitignore file as follows:
.idea/*
!/.idea/runConfigurations
don't forget adding * after .idea/
As the last step, add your run configurations to source control and enjoy your shared configurations!
goto
Run > Edit Configuration > create or select existing configuration you want to use > click save and persist it on file system > click on share check mark
now copy this file from
PROJECT_ROOT_DIRECTORY/.idea/runConfigurations/ConfigurationName.xml
to your NEW_PROJECT_ROOT_DIRECTORY/.idea/runConfigurations at the same place and it is available now to your run configuration
You should copy the folder
~/your-old-project/.idea/runConfigurations
to
~/your-new-project/.idea/
That's the folder that contains the run configurations.
An update for this question with the new IntelliJ updates:
Now you can "Store as project file" which will create a folder named ".run" and export your setting to that folder. In the example below, I did it for all my test settings. This removes the requirement of editing .gitignore since files are now not outside of ./idea
This is not exactly an answer to your question but it answers a question similar to your question and one that I had, and I'm assuming others might as well.
That is, How to save unit and instrumentation test run configurations? I usually right-click on the test directory which brings up a menu with the option to Run whatever is in that directory. AndroidStudio then creates a run configuration on the fly and in the Run Configuration drop-down menu a new option will appear, "Save new configuration?" or something similar.
Clicking that option brings up the Run Configuration menu and at that point I check the Share box as many others have already mentioned. This then will prompt the version control system to ask me if I want to add this new run configuration file. If you haven't registered your version control system you can find the new files under .idea/runConfigurations.
I have created an app for sphero.
The problem is that i started by opening the sphero sample program ButtonDrive and worked with that as a base. Now i want to change the name of the project and the apk.
I have tried right-clicking the project and renaming it that way, and for the main project that works, however when i run the project as an application unto my nexus 7 is just comes up and says:
" Unfortunately, Button Drive has stopped"
So why doesn't this work?
The tablet clearly thinks the project is still called Button Drive but where in the code do i have to change this to make it work?
or is it just not possible to change the name ?
When you right-clicked on the project in the project navigator did you click rename in the main dropdown, or did you click on "Rename Application Package" within the android tools sub-menu? You should be using the later option.
Also verify that the AndroidManifest.xml Label field is correct, or if it is pointing to a value in strings.xml within res/values verify that the application name is correct.