Click here to Skip to main content
15,886,788 members
Articles / Programming Languages / Visual Basic

Compiling Multiple Projects Without a Solution

Rate me:
Please Sign up or sign in to vote.
4.33/5 (6 votes)
23 Jun 20074 min read 47.3K   409   36  
An article on creating a build process to compile multiple .NET projects using MSBuild without using a solution file.
'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:2.0.50727.42
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

Imports System

Namespace My.Resources
    
    'This class was auto-generated by the StronglyTypedResourceBuilder
    'class via a tool like ResGen or Visual Studio.
    'To add or remove a member, edit your .ResX file then rerun ResGen
    'with the /str option, or rebuild your VS project.
    '''<summary>
    '''  A strongly-typed resource class, for looking up localized strings, etc.
    '''</summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"),  _
     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
     Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _
    Friend Module Resources
        
        Private resourceMan As Global.System.Resources.ResourceManager
        
        Private resourceCulture As Global.System.Globalization.CultureInfo
        
        '''<summary>
        '''  Returns the cached ResourceManager instance used by this class.
        '''</summary>
        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
            Get
                If Object.ReferenceEquals(resourceMan, Nothing) Then
                    Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("MSBuildProjectCreator.Resources", GetType(Resources).Assembly)
                    resourceMan = temp
                End If
                Return resourceMan
            End Get
        End Property
        
        '''<summary>
        '''  Overrides the current thread's CurrentUICulture property for all
        '''  resource lookups using this strongly typed resource class.
        '''</summary>
        <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
        Friend Property Culture() As Global.System.Globalization.CultureInfo
            Get
                Return resourceCulture
            End Get
            Set
                resourceCulture = value
            End Set
        End Property
        
        '''<summary>
        '''  Looks up a localized string similar to &lt;Project&gt;
        '''
        '''  &lt;ItemGroup&gt;
        '''  &lt;/ItemGroup&gt;
        '''
        '''  &lt;Target Name=&quot;Build&quot;&gt;
        '''    &lt;MSBuild Projects=&quot;@(ProjectReferences)&quot; Targets=&quot;Build&quot; /&gt;
        '''  &lt;/Target&gt;
        '''
        '''&lt;/Project&gt;
        '''.
        '''</summary>
        Friend ReadOnly Property BuildFile() As String
            Get
                Return ResourceManager.GetString("BuildFile", resourceCulture)
            End Get
        End Property
        
        '''<summary>
        '''  Looks up a localized string similar to MSBuildProjectCreator &lt;Project Directory&gt;|&lt;Text File&gt; &lt;MSBuild Project&gt;
        '''
        '''	&lt;Project Directory&gt; - This should be the root directory that 
        '''		contains the VB.Net or C# project files that should be included 
        '''		in the MSBuild project.
        '''
        '''	&lt;Text File&gt; - This should be a text file (ends in .txt) that 
        '''		contains the path to the projects, root directories, or other 
        '''		text files that should be included in the MSBuild project.
        '''
        '''	&lt;MSBuild Project&gt; - The destination path to the MSBuild project 
        '''		file that wil [rest of string was truncated]&quot;;.
        '''</summary>
        Friend ReadOnly Property CommandLineHelp() As String
            Get
                Return ResourceManager.GetString("CommandLineHelp", resourceCulture)
            End Get
        End Property
    End Module
End Namespace

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
I'm a software engineer in Spokane, WA. I have been developing with .Net since 2002. My main area of focus has been designing and implementing a UI framework for an ERP system. Before I got into .Net, I developed for several years in a variety of languages and platforms including mostly ASP, though I've also developed applications for both Palm and Pocket PC devices.

I received my degree in Computing and Software System from the University of Washington in 1999. I have also completed a certificate course in Object-Oriented Analysis and Design Using UML, also from the University of Washington, in 2005.

Comments and Discussions