Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 6 > BOOK: C# 24-Hour Trainer 2nd Edition
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 7th, 2017, 06: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
Send a message via Skype™ to banjo1@gmail.com
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".
Reply With Quote
  #2 (permalink)  
Old September 8th, 2017, 03:02 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06: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 11:15 AM
Executable - From Server KennethMungwira VB.NET 0 July 20th, 2006 03:33 PM
Creating an executable Arsi C# 1 November 9th, 2004 06:45 PM



All times are GMT -4. The time now is 05:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.