Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: C# 24-Hour Trainer 2nd Edition
This is the forum to discuss the Wrox book C# 24-Hour Trainer, 2nd Edition by Rod Stephens; ISBN: 978-1-119-06566-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: C# 24-Hour Trainer 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2017, 05:37 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2017
Location: Seattle
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Executable after running debug.

Hi, I'm just starting this book, Enjoying it! Got a question though. In the first chapter it is mentioned that after running debug in VS, you can located the executable in Explorer and double click on it... but that won't work on "other machines". I am wondering, has this behavior changed in later versions of Visual Studio? When I double click on the executable, I get this:

"This application can only run in the context of an app container".
 
Old September 8th, 2017, 02:02 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Hi Banjo,

Sorry about that. The short answer is that the newer Universal (UWP) apps are intended to be installed as apps so they can only run inside an app container. That means you need to run them either in the Visual Studio development environment, or you can install them as apps via the App Store.

That book deals mostly with Windows Forms and to a lesser extent WPF applications. Those kinds of programs create an executable that you can run by double-clicking on the local machine.

Sorry about the confusion!
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem running code in debug mode rslotpole@gmail.com BOOK: Professional Java for Web Applications 2 August 31st, 2016 05:21 AM
running executable with VB6 nasirmunir Beginning VB 6 24 November 16th, 2007 04:12 PM
Running executable file Promod333 Visual Basic 2005 Basics 1 September 7th, 2007 10:15 AM
Executable - From Server KennethMungwira VB.NET 0 July 20th, 2006 02:33 PM
Creating an executable Arsi C# 1 November 9th, 2004 06:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.