Question: How to configure project to always build as a "standalone app"
See original GitHub issueI’m looking at what it will take to port some of my projects onto the new SDK. My projects are already MSBuild-based, and just use a small set of properties and targets to get references, configurations, output paths, etc. consistent. For most of my projects, I’m really only interested in building things fully standalone (i.e. never as a portable/shared framework app). Is there an easy way that I can set up my projects with the new tooling to accomplish this? Ideally, whenever I built an executable project, all of my runtime dependencies from nuget would be copied next to my project output. Essentially, I’m looking for something similar to how the regular MSBuild targets handle <CopyNuGetImplementations>true</CopyNuGetImplementations>
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How do I set Visual Studio to always build and debug when ...
Click on "Build and Run" tab. In the "On Run, when projects are out of date" dropdown, select "Always build".
Read more >Building and running an app
To build and run your code, choose Product > Run, or click the Run button in your project's toolbar. Xcode analyzes your scheme's...
Read more >Configure your build | Android Studio
To start creating custom build configurations right away using Android Studio, see Configure build variants. The build process. The build process involves many ......
Read more >Build a stand-alone executable by Visual Studio 2019 ...
Right-click on the project and select Publish. Choose the location you want to deploy, as an example, I choose the folder, and then...
Read more >How to: Organize Project Output Files for Builds
First, it ensures that projects are built in the right order so that a project can always find the dependent files it needs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just ran into this as well. Is there anyway that users can write this kind of logic in their project?
This way ‘dotnet publish’ always publishes as standalone for the current platform, without having to add ‘-r $rid’.
Yes, +1 to @natemcmaster 's question. Can we have an MSBuild property exposed for that? I know we would find something like that very useful in corefx, as well.