Alternate the startup project automatically for Windows Universal Apps

Cross-post from my MSDN blog http://blogs.msdn.com/b/msgulfcommunity/archive/2015/01/13/setup-startup-project-automatically-for-universal-apps.aspx 


Hello Developers!

Now with Universal Apps we have 3 or more projects loaded into the Visual Studio solution.

  1. Windows 8.1 Project: It contains XAML UI pages and code that targets Windows 8.1.
  2. Windows Phone 8.1 Project: It contains XAML UI pages and code that targets Windows Phone 8.1.
  3. Shared Project : It contains have XAML UI pages and code that are common to both platforms.

The following screenshot illustrates:

Visual Studio Solution for Universal Apps

As you can notice in the previous screenshot there is one project name that stands out with Bold marking. That is the Startup project, which is the project that runs when you run the solution – for example by pressing F5. Visual Studio runs the project that is selected as the startup. Now, in order to set the startup project, we need to right-click on a specific project node in Solution Explorer and choose Set as Startup Project. The project that we now chose will show in bold in Solution Explorer as a visual aid. In the previous screenshot, it was Site2App3 (Windows 8.1)

So if we run the project now, the Windows App will deploy and start. Moreover, if we need to run the Windows Phone app, we will need to need to set it as Startup up by right-clicking on the Windows Phone 8.1 project node in Solution Explorer and choosing Set as Startup Project. It gets a bit mundane if you keep doing this for sometime while alternating between projects to run the apps after every modification.

Well, I have the answer. The solution to make your lives easier. We can do something in Visual Studio that allows us to run the project without worrying about setting a Startup Project and let Visual Studio decide depending on the current selection, whereby, whatever project you highlight in the Solution Explorer (or file you select in the text editor) will in turn become the current startup project.

To achieve this, right-click on the solution explorer, choose properties. Next select Startup Project, from there select Current Selection from the Radio Button List. The following screenshot illustrates:

By the way this (multiple projects in a single solution) is not the Y2K problem, developers faced similar situations in the past where they had a website project alongside a console application or windows service or others.

Happy Coding :)

Rami

Alternate the startup project automatically for Windows Universal Apps was originally published on Rami Sarieddine's Blog

Posted in Visual Studio, Windows Development

Alternate the startup project automatically for Windows Universal Apps

Cross-post from my MSDN blog http://blogs.msdn.com/b/msgulfcommunity/archive/2015/01/13/setup-startup-project-automatically-for-universal-apps.aspx 


Hello Developers!

Now with Universal Apps we have 3 or more projects loaded into the Visual Studio solution.

  1. Windows 8.1 Project: It contains XAML UI pages and code that targets Windows 8.1.
  2. Windows Phone 8.1 Project: It contains XAML UI pages and code that targets Windows Phone 8.1.
  3. Shared Project : It contains have XAML UI pages and code that are common to both platforms.

The following screenshot illustrates:

Visual Studio Solution for Universal Apps

As you can notice in the previous screenshot there is one project name that stands out with Bold marking. That is the Startup project, which is the project that runs when you run the solution – for example by pressing F5. Visual Studio runs the project that is selected as the startup. Now, in order to set the startup project, we need to right-click on a specific project node in Solution Explorer and choose Set as Startup Project. The project that we now chose will show in bold in Solution Explorer as a visual aid. In the previous screenshot, it was Site2App3 (Windows 8.1)

So if we run the project now, the Windows App will deploy and start. Moreover, if we need to run the Windows Phone app, we will need to need to set it as Startup up by right-clicking on the Windows Phone 8.1 project node in Solution Explorer and choosing Set as Startup Project. It gets a bit mundane if you keep doing this for sometime while alternating between projects to run the apps after every modification.

Well, I have the answer. The solution to make your lives easier. We can do something in Visual Studio that allows us to run the project without worrying about setting a Startup Project and let Visual Studio decide depending on the current selection, whereby, whatever project you highlight in the Solution Explorer (or file you select in the text editor) will in turn become the current startup project.

To achieve this, right-click on the solution explorer, choose properties. Next select Startup Project, from there select Current Selection from the Radio Button List. The following screenshot illustrates:

By the way this (multiple projects in a single solution) is not the Y2K problem, developers faced similar situations in the past where they had a website project alongside a console application or windows service or others.

Happy Coding :)

Rami

Posted in Visual Studio, Windows Development

Microsoft Dev Center Benefits

Originally Posted at MSDN Blogs: Microsoft Gulf Technical Community


 

Hello Developers!!

I wanted to share with you the news about the updated rewards functionality in the Windows Dev Center Benefits. For those of you who are not aware of the program, Dev Center Benefits is a global program for Windows app developers of all experience levels. Developers receive technical, design, publishing, and marketing offers to help build and promote their apps.

The program provides access to great offers as well as challenges to earn points to redeem for rewards, these rewards include the following:
Rewards Program of Windows Dev Center Benefits

  • Free Dev Center account for unregistered developers
  • Architectural guidance
  • Design Guidance
  • Gift cards for Windows Store
  • 1 million ad impressions with AdDuplex
  • Priority consideration for BizSpark program
  • Windows Store merchandising promotions
  • Priority Publisher Support

The members who join can participate in challenges to earn points which can then be redeemed for rewards. This program is available at no additional costs for those who are already a registered Windows Store developer. If you are new developer on the Microsoft platform, the program will provide a token that waives the cost of the Dev Center registration (normally $99 USD for companies and $19 USD for individuals). Moreover, all Windows and Windows Phone app developers are eligible to enroll in Dev Center Benefits. The program is open where a Windows Dev Center is available:

Joining is easy and for free, you just need a Microsoft Account (The Microsoft account you login with is assoicated to your Windows or Windows Phone Dev Center account). Here is the link to Join:https://devcenterbenefits.windows.com/join/#!/

Happy and in this case “rewarding” coding!

Microsoft Dev Center Benefits was originally published on Rami Sarieddine's Blog

Posted in Uncategorized

Microsoft Dev Center Benefits

Originally Posted at MSDN Blogs: Microsoft Gulf Technical Community


 

Hello Developers!!

I wanted to share with you the news about the updated rewards functionality in the Windows Dev Center Benefits. For those of you who are not aware of the program, Dev Center Benefits is a global program for Windows app developers of all experience levels. Developers receive technical, design, publishing, and marketing offers to help build and promote their apps.

The program provides access to great offers as well as challenges to earn points to redeem for rewards, these rewards include the following:
Rewards Program of Windows Dev Center Benefits

  • Free Dev Center account for unregistered developers
  • Architectural guidance
  • Design Guidance
  • Gift cards for Windows Store
  • 1 million ad impressions with AdDuplex
  • Priority consideration for BizSpark program
  • Windows Store merchandising promotions
  • Priority Publisher Support

The members who join can participate in challenges to earn points which can then be redeemed for rewards. This program is available at no additional costs for those who are already a registered Windows Store developer. If you are new developer on the Microsoft platform, the program will provide a token that waives the cost of the Dev Center registration (normally $99 USD for companies and $19 USD for individuals). Moreover, all Windows and Windows Phone app developers are eligible to enroll in Dev Center Benefits. The program is open where a Windows Dev Center is available:

Joining is easy and for free, you just need a Microsoft Account (The Microsoft account you login with is assoicated to your Windows or Windows Phone Dev Center account). Here is the link to Join:https://devcenterbenefits.windows.com/join/#!/

Happy and in this case “rewarding” coding!

Posted in Uncategorized

How to get FTP Credentials for Microsoft Azure Websites

Azure Websites

Originally Posted at MSDN Blogs: Microsoft Gulf Technical Community
———————————————————————————————–

Some of you, who have been using Azure or planning to use it at some point, might come across this small predicament. So you create a Azure Website and then you might want to connect to that Website via FTP. You go to the Azure Portal -> Websites, you look for the FTP credentials but all you can see is the following:

  • Site URL:                             something.azurewebsites.net
  • FTP host name:                  ftp://waws-prod-db3-003.ftp.azurewebsites.windows.net
  • FTPS host name:               ftps://waws-prod-db3-003.ftp.azurewebsites.windows.net
  • Deployment / FTP user:    something\user
  • FTP Diagnostic Logs:        ftp://waws-prod-db3-003.ftp.azurewebsites.windows.net/LogFiles
  • FTPS Diagnostic Logs:     ftps://waws-prod-db3-003.ftp.azurewebsites.windows.net/LogFiles

These values do not give you access to your FTP credentials. Moreover, the FTP credentials are not the login and password that you are using everywhere else.
Nevertheless,  Azure provides you with a Publish Profile that you can download as per the following screenshot:

– Save that Publish Settings file some where on your machine so you can edit it.

– Open the file with a notepad or XML viewer for better readability (you can open it with Visual Studio too)

The file would look something like the following:

The previous screenshot shows the FTP server name (Host), user name and password. These values are what you need to enter when you use an FTP tool like Filezilla or any other tool you have to access your site remotely. Bear in mind, that the ftp Passive Mode is set to true.

That’s it for now. Happy FTPing.

 

Posted in Windows Azure Tagged with:

Enter your email address to receive notifications of new posts.

Join 56 other subscribers

My books on Goodreads

JavaScript Promises Essentials
JavaScript Promises Essentials

reviews: 2


ratings: 5 (avg rating 4.00)


Developing Windows Store Apps with Html5 and JavaScript
Developing Windows Store Apps with Html5 and JavaScript

reviews: 2


ratings: 3 (avg rating 5.00)


Follow me on Twitter

Meet me

Rami Sarieddine

Rami Sarieddine

I started writing code and crafting some HTML back in 2006, and have hopped between several engagements which led me to Microsoft working as a Technical evangelist. I have also authored a couple of books along the way.

View Full Profile →