Reputation: 15282
I can't seem to find how to create an MSBuild script from within Visual Studio. Anyone know how? I'm using VS Professional.
Upvotes: 3
Views: 7507
Reputation: 180
Make sure the file extension is .msbuild and not .xml this will enable the intellisense.
Upvotes: 3
Reputation: 76198
You can also use this awesome tool: http://www.attrice.info/msbuild/
Upvotes: 2
Reputation: 9938
Start with this as a skeleton for your file,
<?xml version="1.0" encoding="utf-8"?>
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0"
DefaultTargets="Build">
<Target Name="Build">
<Message Text="Building..." />
</Target>
</Project>
Upvotes: 7
Reputation: 3637
I don't have any trouble (VS 2010 Premium). A standard MSBUILD file is an XML file, so opening it using File -> Open -> File should open it in the XML editor in VS. Then you can edit, add it to a project or whatever as you need.
I'm not sure if you need a certain edition for the Intellisense to work.
Upvotes: 2
Reputation: 62484
MSBuild itself is pretty straightforward so it is pretty simple to do it in any text/xml
editor.
BTW, MSDN Walkthrough: Creating an MSBuild Project File from Scratch does not tell anything about Visual Studio and just provides tips how-to write script in editor.
Upvotes: 1