question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How to configure project to always build as a "standalone app"

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
natemcmastercommented, Jan 12, 2017

Just ran into this as well. Is there anyway that users can write this kind of logic in their project?

<PropertyGroup>
    <RuntimeIdentifier>$(CurrentRid)</RuntimeIdentifer>
</PropertyGroup>

This way ‘dotnet publish’ always publishes as standalone for the current platform, without having to add ‘-r $rid’.

0reactions
mellinoecommented, Feb 17, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found