473,671 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>
Nov 17 '08 #1
1 2519
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)
"ch***********@ 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>
Nov 17 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2363
by: Jianwei Sun | last post by:
I am trying to edit an MSBuild project file in the Visual Studio 2005. I tried to use the Intellisense of the editor, so I reference the xmlns at the first line like this: <Project DefaultTargets="DDTI.Utilities.Clean" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> When I define some custome property like this in the build file .
2
1599
by: minorguy | last post by:
I have a general question about MSBuild (which I know little about so far) and I hope this is the right newsgroup. I can read the reference documentation about MSBuild, but it's not really telling me what I want to know. Perhaps someone can point me in the right direction. We have several projects, mostly C++, that we develop with Visual Studio 2005. I would like to automate this process. All of the targets, executables and DLLs, need to...
1
6497
by: ritesh.noronha | last post by:
Hi Group, I have a question regarding the commandline options of msbuild. I am currently using msbuild to build projects using the existing solution files. These solution files have references to external dll which have different paths on each machine. I am currently writing a build script and passing the specific path to the project file via the /p: switch of msbuild. My current build line is:
5
4464
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class libraries. We are having a path reference issue for the depending projects; if the build is started in another directory than that of the imported project. (It's a simple cannot find project xyz.csproj, build fails.) If we place the xml file in...
0
1627
by: roger23 | last post by:
I get this error C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(526,9): error MSB6006: "aspnet_compiler.exe" exited with code 1. at the end of my build step of my web deployment project. it does not give me any error messages to debug. the only place where i can see some problem is this: Dependency "System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
0
939
by: Curious | last post by:
Hi, I created a scheduler job with MsBuild. Now the job failed because something is wrong with the msbuild xml file, specifically, it's C: \program files\..\..\msbuild (271,2) error: One or more post restore tasks failed. When I take a look at msbuild file at line 271, that points to the white space between the last ItemGroup and the first Target:
0
946
by: Curious | last post by:
Hi, I created a scheduler job with MsBuild. Now the job failed because something is wrong with the msbuild xml file, specifically, it's C: \program files\..\..\msbuild (271,2) error: One or more post restore tasks failed. Line 271 in msbuild file is white space between the last ItemGroup and the first Target as shown below. Anyone can tell me what's wrong?
2
2516
by: =?Utf-8?B?Q29saW4gRGVzbW9uZA==?= | last post by:
Hi All, I have a solution file that contains a number of projects, a web service and a website. These all build fine in VS2008, and all but the website builds fine using MSBuild. The website, however, gives the following error: ASPNETCOMPILER(0,0): error ASPRUNTIME: Could not load file or assembly 'App_WebReferences, Version=0.0.0.0, Culture=neutral, PublicKeyToken=(our public key token)' or one of its dependencies. Strong name...
7
2413
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/. I installed it but no new project type shows in my VS 2008.
0
8483
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8824
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8603
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5703
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2818
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2060
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.