Monthly Archives: June 2013

You can target only Windows 8.1 with VS 2013?

If you tried to create a new Windows Store project with the new preview of Visual Studio 2013 on Windows 8.1, you probably noticed the “(Windows 8.1)” remark in the Solution Explorer:


If you open the project properties window, you can find the Target Platform Version option, but unfortunately it is disabled:


The basic principle, that you need a Windows 8 host to develop a Windows Store app is still true, however you have to watch for the versions as well (at least for this preview).

In short:

  • You can open and edit an existing Windows 8 project with Visual Studio 2013 on Windows 8.1.
  • You cannot create a new Windows 8 project with Visual Studio 2013 on Windows 8.1.
  • If you want to create a new Windows 8 project on Windows 8.1, you should use Visual Studio 2012.


Technorati-címkék: ,

Using any file type in the file save picker

In Windows 8 you can easily configure the File Open Picker to allow the user to select a file with any type – just use the well-known asterisk:

var openPicker = new Windows.Storage.Pickers.FileOpenPicker();

You can try the same with the File Save Picker as well:

var savePicker = new Windows.Storage.Pickers.FileSavePicker();
savePicker.fileTypeChoices.insert("Any", ["*"]);

However, this raises a runtime error:

0x80070057 – JavaScript runtime error: The parameter is incorrect.

WinRT information: This file picker does not allow the all files extension.

Fortunately there is a nice hack to force the File Save Picker to allow any file type:

savePicker.fileTypeChoices.insert("Any", ["."]);

Technorati-címkék: ,,,