Msbuild and data service reference

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris.kennedy@peninsula-uk.com

    #1

    Msbuild and data service reference

    This is a little OT. I have a website which uses vb classes in the
    app_code folder which in turn call a data service. I want compile the
    app_code vb files into a separate dll (to use Sandcastle on them) with
    MSBuild (it's a bit of a work around). When I run my MSbuild file I
    need it to reference the classes created by service reference. How do
    I reference them in my build file. Is this a complete nonstarter. I
    have been told that we have to use website projects and I thought this
    might be a workaround. Also what about the web config.


    <Project DefaultTargets= "Compile" xmlns="http://schemas.microso ft.com/
    developer/msbuild/2003">
    <ItemGroup>
    <VBFile Include="App_Co de\BLL\Advice.v b"/>
    <VBFile Include="App_Co de\BLL\Document s.vb"/>
    <VBFile Include="App_Co de\CustomTypes\ CustomTypes.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ datehelper.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ errorhelper.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ filehelper.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ permissionhelpe r.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ stringhelper.vb "/>
    <VBFile Include="App_Co de\Misc\helper\ validationhelpe r.vb"/>
    </ItemGroup>
    <PropertyGrou p>
    <OutputPath>C:\ Systems\MSBuild \MSBuild\MSBuil dProj\bin\debug </
    OutputPath>
    <AssemblyName>$ (OutputPath)\ad vice.dll</AssemblyName>
    <Optimize>false </Optimize>
    </PropertyGroup>
    <Target Name="Compile">
    <Vbc Sources="@(VBFi le)"
    TargetType="lib rary"
    OutputAssembly= "$(AssemblyName )" References="@(R eference)"
    />
    </Target>
    </Project>
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Msbuild and data service reference

    you have two options:

    1) with msbuild do a publish to a the precompile dir and run sandcastle on
    the appcode dll. see the aspnet_compiler .exe docs to undersand how publish
    builds are done.

    2) create a seperate library project and move the appcode files to this
    project. then add a project/dll reference to the web site.


    -- bruce (sqlwork.com)


    "chris.kennedy@ peninsula-uk.com" wrote:
    This is a little OT. I have a website which uses vb classes in the
    app_code folder which in turn call a data service. I want compile the
    app_code vb files into a separate dll (to use Sandcastle on them) with
    MSBuild (it's a bit of a work around). When I run my MSbuild file I
    need it to reference the classes created by service reference. How do
    I reference them in my build file. Is this a complete nonstarter. I
    have been told that we have to use website projects and I thought this
    might be a workaround. Also what about the web config.
    >
    >
    <Project DefaultTargets= "Compile" xmlns="http://schemas.microso ft.com/
    developer/msbuild/2003">
    <ItemGroup>
    <VBFile Include="App_Co de\BLL\Advice.v b"/>
    <VBFile Include="App_Co de\BLL\Document s.vb"/>
    <VBFile Include="App_Co de\CustomTypes\ CustomTypes.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ datehelper.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ errorhelper.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ filehelper.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ permissionhelpe r.vb"/>
    <VBFile Include="App_Co de\Misc\helper\ stringhelper.vb "/>
    <VBFile Include="App_Co de\Misc\helper\ validationhelpe r.vb"/>
    </ItemGroup>
    <PropertyGrou p>
    <OutputPath>C:\ Systems\MSBuild \MSBuild\MSBuil dProj\bin\debug </
    OutputPath>
    <AssemblyName>$ (OutputPath)\ad vice.dll</AssemblyName>
    <Optimize>false </Optimize>
    </PropertyGroup>
    <Target Name="Compile">
    <Vbc Sources="@(VBFi le)"
    TargetType="lib rary"
    OutputAssembly= "$(AssemblyName )" References="@(R eference)"
    />
    </Target>
    </Project>
    >

    Comment

    Working...