Forum Visual Studio

Changing BaseIntermediateOutputPath causes build error CS0103.

PossumPossum USMember

I have a simple .net standard project that included Xamarin.Forms in Visual studio 2017. The build was successful until I change the default BaseIntermediateOutputPath in project file.

Snippet of the .csproj file:

    <BaseIntermediateOutputPath>hello/</BaseIntermediateOutputPath>   <!-- Comment this out and build passes -->

The build error was:

Page1.xaml.cs(17,4): error CS0103: The name 'InitializeComponent' does not exist in the current context.

After inspecting the msbuild output. It looks like the XamlG target never included/executed.

Any insight?




Sign In or Register to comment.