Catel / Catel.Examples

Microsoft Public License
40 stars 35 forks source link

Build errors #53

Closed ttustonic closed 5 years ago

ttustonic commented 5 years ago

Hello Do these examples work? I just downloaded the zip file with the code, and when I try to build (Visual Studio 2017) I get more than 50 errors.

The error list is in the attachment Thanks, Tom

builderrors.txt

GeertvanHorrik commented 5 years ago

Hi Tom,

We are currently updating everything to the latest versions, so we are kind of in an in-between state. Hopefully we will have them up and running soon.

GeertvanHorrik commented 5 years ago

Just pushed a fix that should make all WPF projects compilable again.

ttustonic commented 5 years ago

Hello, thanks But, no, it still doesn't build. There are no references to wpf dlls (windowsbase, presentationframework, etc.). When I add these references, I have to explicitly set inheritance (for example, in App.xaml.cs I have to set that it inherits from Application, similar to views and Datawindow). After that, I get the errors

The name 'InitializeComponent' does not exist in the current context

because g.i.cs files are not generated. Also, I get the error

Program does not contain a static 'Main' method suitable for an entry point

Cheers, Tom

GeertvanHorrik commented 5 years ago

Looks like an issue with the new version of MsBuildSdkExtras. I've created a ticket, but not sure about the workaround just yet.

https://github.com/onovotny/MSBuildSdkExtras/issues/145

GeertvanHorrik commented 5 years ago

Checking into this again. It works fine in a prerelease version of VS. Checking stable VS versions now.

GeertvanHorrik commented 5 years ago

Yep, fails in stable. Will revert the MSBuild Sdk Extras changes.

GeertvanHorrik commented 5 years ago

Fixed, thanks for reporting!