语言

Menu
Sites
Language
Simplest sample .NET app is not working

Cannot work with the Tizen .NET preview.

In Visual Studio Community 2015 create a new project from Visual C# templates for Tizen - Blank App (Tizen Xamarin.Forms Single). Leave the template as is, don't change a line of code.

When loading the project VS reports the warning as shown below: 

Warning    IDE0006    Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. 

 

Log collected by VS launched in the Developer Command Prompt (see the file attached) shows an error like "Done executing task "XamlCTask" -- FAILED" that probably happenned when parsing project files. 

As a result, the project cannot be built and launched in Tizen emulator.

Developer's system is Windows 8.1 Enterprise 64 bits. Same problem occurs in Windows 7 Enterprise 64 bits, SP 1.

 

响应

3 回复
Mango Bar

Use Blank App (Tizen Xamarin.Forms Portable) template instead of Blank App (Tizen Xamarin.Forms Single). And check whether app works fine or not . It works fine in my PC. Follow the steps of  following manual which a i followed and successfully run my .Net sample app.

https://developer.tizen.org/development/preview/visual-studio-tools-tizen/managing-your-project

Oleg Stukov

Thank you for your advice.

I'm not sure what the key step was (maybe, Restore NuGet Packages manually), but after making recommended steps

the build succeeded and debugging the app started working.

Moreover, after doing this for Tizen Xamarin.Forms Portable project the problem disappeared for Tizen Xamarin.Forms Single as well.

I think, it's worth to include some vital guidelines for managing project in the Creating Your First Tizen .NET Application article,

otherwise, the first app may not run at all.

Oleg Stukov

It seems the problem is in the Xamarin.Forms NuGet package.

If a sample project is created with default packages, everything is working fine.

However, as soon as Xamarin.Forms is updated (via "Manage NuGet Packages for Solution..." context menu) to the latest version (v2.3.3.180),

the problem described above is reproduced.

It doesn't depend on type of the sample project, any project becomes non-functioning after the update.