Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Preprocessed xaml files aren't used with Visual Studio 2017 #17

Open
kekekeks opened this issue Jan 6, 2017 · 6 comments
Open

Preprocessed xaml files aren't used with Visual Studio 2017 #17

kekekeks opened this issue Jan 6, 2017 · 6 comments

Comments

@kekekeks
Copy link

kekekeks commented Jan 6, 2017

I can clearly see that obj/Debug/preprocessedxaml contains files with proper changes, but for some reason I still get MarkupExtension not found for d:DesignInstance error.

@dfyx
Copy link

dfyx commented May 16, 2017

I had the same problem and after I upgraded to the following setup, it works:

  • Visual Studio 2017 (15.2)
  • netstandard1.4
  • Xamarin.Forms 2.3.4.231
  • xcc 1.0.9

@powerdude
Copy link

starting to see this error after upgrading to VS 2017 (15.3) and changing project to .netstandard project.

@KarolStosik
Copy link

After updating to netstandard2.0, xcc does not longer work.

@cswendrowski
Copy link

I was stuck on this issue as well, and finally stumbled upon a solution in this Xamarin Forms bug post

You need to add an [assembly: XamlCompilation(XamlCompilationOptions.Compile)] to your Shared project. This will precompile every XAML file which properly ignores all XAML definitions marked by a mc:Ignorable. XCC is no longer necessary for stripping out Ignorable content.

Full snippet below:

[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace MyApp.Shared
{
    public class CoreApp : Application {

I have no idea how to resolve this issue for XAML files that are not being precompiled unfortunately.

@Sumaiya786
Copy link

Hi Team,

I am facing the same issue after upgrading to visual studio 2017, Xamarin 3.6, .NetStandard 2.0.

XCC is not working with above configuration.

The solution mentioned by "cswendrowski" is also not working.

Could you please provide the alternate solution as well as let us know is there any plan to update the nuget with support in .netstandard.

@KarolStosik
Copy link

@Sumaiya786 you don't need this Nuget any more. Remove it from your solution, and apply xaml compilation on the whole assembly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants