c# - MSBuild trying to build exe instead of dll -


I have created the .csproj file to run command line tool using msbuild, though, when I run it Trying to create an exe as an example, how can I make it specially as a dll? Here below is the code in .csproj file and I execute a command prompt:

   version = "4.0" defaultTargets = "build" xmlns = "http://schemas.microsoft .com / developer / MSBuild / 2003 "& gt; & Lt; ItemGroup & gt; & Lt; Include References = "System" /> & Lt; Include in context = "System.Core" /> & Lt; Include in context = "System.Data.Linq" /> & Lt; / ItemGroup & gt; & Lt; ItemGroup & gt; & Lt; Include Compilation = "C: \ test \ test.cs" /> & Lt; Include compilation = "C: \ test \ test.Designer.cs" /> & Lt; Include Embedded Resources = "C: \ test \ test.resx" / & gt; & Lt; / ItemGroup & gt; & Lt; Target name = "build" & gt; & Lt; CSC source = "@ (compile)" resource = "@ (embedded resources)" reference = "@ (reference)" target type = "library" output assembly = "c: \ test \ test.dll" /> & Lt; / Target & gt; & Lt; Import Project = "$ (MSBuildToolsPath) \ Microsoft.CSharp.targets" / & gt; & Lt; / Project & gt; CMD: MSBield "C: \ test \ test.csproj"  

Add it Csproj file:

  & lt; Asset group & gt; & Lt; OutputType & gt; Library & lt; / OutputType & gt; & Lt; / PropertyGroup & gt;  & lt; Item group & gt;  above the announcement  


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -