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>
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