0

I am working on a game engine right now. I am planning to use WPF as our UI for our level editor. I am trying to create a solution file with multiple projects in it. I have managed to create 2 projects ("shared library", "WindowsApp").

Is there any sample premake5 lua script out there how add/create a WPF projects to my sln?

Edited: Sorry I forgot to mention about premake. How to create wpf project with premake.

4

2 回答 2

1

只需创建一个空白解决方案并向其中添加新项目。在“新建项目”窗口中,您可以通过在右上角的搜索框中键入“wpf”来过滤掉 WPF 模板项目。

更多信息:

https://msdn.microsoft.com/en-us/library/ms752299(v=vs.110).aspx

https://msdn.microsoft.com/en-us/library/bb546958(v=vs.110).aspx

于 2015-04-23T06:43:02.050 回答
0

通过尝试和错误,我找到了解决方案。

project "VoxelEngine_Editor"
  targetname "WPFProject"
  location "../WPFProject/"
  language "C#"
  flags { "WPF" }
  objdir "../obj"
  kind "SharedLib"

  files{ wpffiles }   -- source files
  links ("Microsoft.Csharp")
  links ("PresentationCore")
  links ("PresentationFramework")
links ("System")
links ("System.Core")
links ("System.Data")
links ("System.Data.DataSetExtensions")
links ("System.Xmal")
links ("System.Xml")
links ("System.Xml.Linq")
于 2015-04-26T10:30:48.903 回答