Reputation: 3024
I have created a WPF project in Visual Studio 2017 and it runs without any issues.
However, I noticed that many of the guides online are using a .csproj to perform several tasks. When I tried searching for my .csproj file, I couldn't find one.
Is there something wrong with my project?
This is what it looks like:
The closest thing I have is my App.config files
Upvotes: 0
Views: 1545
Reputation: 1619
You can right click the solution then click Unload Project. From there right click again and you will see 'Edit csproj'. That is an easy way to edit it in VS.
The Main() method is created automatically. If you want to provide your own you have to (tested in VS2013 and VS2017):
Right-click App.xaml in the solution explorer, select Properties Change 'Build Action' to 'Page' (initial value is 'ApplicationDefinition') Then just add a Main() method to App.xaml.cs. It could be like this:
[STAThread]
public static void Main()
{
var application = new App();
application.InitializeComponent();
application.Run();
}
Upvotes: 1