Ich bin neu zu Premake. Ich möchte eine Lösung mit 2-Projekte erstellen:Premake4: wie C# -Lösung mit Unit-Test-Projekt
eine Klassenbibliothek Projekt
ein Unit-Test-Projekt
Ich weiß, die "Art" Werte sind:
-ConsoleApp
-WindowedApp
-SharedLib
-StaticLib
Ich habe keine Art für Unit-Test sehen! Es gibt eine Möglichkeit, dies zu schaffen? unter dem, was ich getan habe ...
solution "MySolution"
--framework ""
configurations { "Debug","Release" }
platforms { "x32","Universal" }
project "MyProject1"
targetname "MyProject1"
location "MyProject1"
kind "SharedLib"
language "C#"
files { "MyProject1/**.cs" }
excludes { "**/bin/**", "**/obj/**" }
links { "System","System.Core","Microsoft.CSharp","System.Runtime.Serialization","System.ComponentModel.DataAnnotations" }
configuration "Debug"
defines { "TRACE","DEBUG" }
flags { "Symbols" }
targetdir "../../../../../../../deploy/bin/"
configuration "Release"
defines { "TRACE" }
flags { "Optimize" }
targetdir "../../../../../../../deploy/bin/"
Ich glaube, die "Art" für ein Unit-Test-Projekt ist "SharedLib" ... aber ich weiß nicht, wie man ein Unit-Test-Projekt erstellen –
Ich löste das Problem teilweise: Ich habe das "Unit-Test-Projekt erstellt "als Shared Lib mit der Referenz des Komponententests. Ich sehe die Ampulle nicht ... aber es funktioniert! –