Sinatr
Sinatr

Reputation: 21998

Rect, where is it?

This drives me crazy, creating new console application project, then

// adding it as reference of course
using System.Windows;

// somewhere in method
var rect = new Rect(1, 2, 3, 4); // no Rect

The type or namespace name 'Rect' could not be found (are you missing a using directive or an assembly reference?)

What happens with Rect?

Upvotes: 4

Views: 3980

Answers (1)

Hamid Pourjam
Hamid Pourjam

Reputation: 20764

You should add WindowsBase.dll as a reference to your project.

Upvotes: 12

Related Questions