CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: Date Entered: 5/5/2006 3:54:46 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 28 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
"kquinbar" <>
NewsGroup User
Project references handled different in WAP?5/5/2006 3:54:46 PM

0

We currently have a solution with a main WAP project and about 5 subprojects, 4 being WAP projects and 1 being a shared class project. In .NET 1.x, internally the project file would use some sort of guid and the solution to make the project references, so this made it very easy for us to promote a solution from our localhost development to our staging environment because it is using relative references. In .NET 2.0, the references now seem to use full paths, which means we can't just promote our solution to our staging webserver and expect to build it there since the paths we have on our localhost machines dont match what is on staging.

Am I understanding this difference between how project files are defined in .NET 1.x vs .NET 2.0 correctly? If this is really true, what is the best way to go about promoting and building a solution when going from a development environment to a staging environment with .NET 2.0 WAP?

For our .NET 1.x projects we were just using a batch file to call .NET and build the solution on the fly. Would we need to do something different like use the new MSBuild engine. I think there are at a lot of configuration options with that arent there? Would be be able to just setup an MSBuild script to force the main project to use a different path when we build in our staging environment?

Kirk Quinbar
Zywave, Inc.

 


Kirk Quinbar
Zywave, Inc.
"BradleyB" <>
NewsGroup User
Re: Project references handled different in WAP?5/6/2006 12:23:37 AM

0

You can still build the solution on the fly using MSBuild.  You can simply call msbuild.exe solutionname.sln.   If you want to build specification you can use msbuild /p:configuration="Debug" solutionname.sln.

As far the the references are concerned they should build correctly by default if they are projet to project references in the solution.  If you referencing assemblies by file paths you can specify search paths.  Here a few links with more information.

http://msdn2.microsoft.com/en-us/library/8y13ka7c.aspx
http://msdn2.microsoft.com/en-us/library/9ad3f294.aspx

Hope this helps,
Brad

"kquinbar" <>
NewsGroup User
Re: Project references handled different in WAP?5/8/2006 1:06:35 PM

0

What I am saying is that the solution will not build correctly once I move it out to our staging environment. We are using project references in our solution, but the build seems to be based off of a full path instead of a relative path.  For example, here is our localhost directory structure:

c:\projects\dev\brokeragebuilder
c:\projects\dev\brokeragebuilder\common
c:\projects\dev\brokeragebuilder\mywavecontrols
...

we also have a K: drive mapped to our staging webbox laid out like this:

k:\brokeragebuilder
k:\brokeragebuilder\common
k:\brokeragebuilder\mywavecontrols
...

in .net 1.x, if I copy our entire solution including subprojects out to the k: drive, and build the solution, it uses relative pathing to find the subprojects and builds everything from what exists on the K: drive. If I do the same thing with a .NET 2.0 solution, it uses full pathing and tries to build the solution from what exists on my local computer, except the main project. So all the project references in .NET 2.0 seem to use full pathing. We verified this by actually going into the project file itself with notepad. The path for each reference is a full path to my C: drive, instead of a relative path.

This is kind of a problem because currently the only way we could get it to build right on our staging box, was to checkout the project file, change the path for the references to be relative, and then check it back in. Obviously this would be a complete pain if we had to do that everytime we promote a project to staging.

let me know your thoughts on this...

 

 


Kirk Quinbar
Zywave, Inc.
"BradleyB" <>
NewsGroup User
Re: Project references handled different in WAP?5/8/2006 8:50:26 PM

0

I've forwarded your question on to some other developers more familiar with that aspect of the msbuild system. 

I know you can specify either absolute or relative paths.  But I don't think you can specify both.  I'd recommend using relative paths on all your machines if possible.

Hope this helps,
Brad.

"kquinbar" <>
NewsGroup User
Re: Project references handled different in WAP?5/8/2006 9:12:48 PM

0

Ok i think you are misunderstanding what our problem is. It seems by default WAP is using absolute pathing when referencing a project within the main project. I don't know any way of changing that. You say you know how to change to use relative paths? Do you mean within the .NET 2.0 solution or when using MSBuild. If you mean within the solution, can you tell me how you do that, because if we can change the default for project references to use relative pathing, then that will solve our problem.

I don't want to do both. If a WAP solution behaved like a .NET 1.x solution and used relative pathing by default, then I would have no issues. :)

Kirk


Kirk Quinbar
Zywave, Inc.
"BradleyB" <>
NewsGroup User
Re: Project references handled different in WAP?5/8/2006 9:26:11 PM

0

WAP projects behave like VS05 class library projects w/ ASP.NET web semantics.  Thus the referencing behavior is like VS05 class libraries not VS03 web projects.

To answer your question, remove the assembly references to k:\brokeragebuilder and re-add them using a path relative to your project.

You should see a <HintPath></HintPath> associated with every reference in the .csproj or .vbproj.  If you look now these paths with have "k:\brokeragebuilder\" in them.  After you remove and re-add the references from relative paths, the <HintPath> property should have "common\" or whatever your relative paths are.

The <HintPath> is determined at the time the assembly is added.

Hope this helps,
Brad

"FooBar" <>
NewsGroup User
Re: Project references handled different in WAP?5/11/2006 5:00:30 AM

0

BradleyB:

WAP projects behave like VS05 class library projects w/ ASP.NET web semantics.  Thus the referencing behavior is like VS05 class libraries not VS03 web projects.

To answer your question, remove the assembly references to k:\brokeragebuilder and re-add them using a path relative to your project.

You should see a <HintPath></HintPath> associated with every reference in the .csproj or .vbproj.  If you look now these paths with have "k:\brokeragebuilder\" in them.  After you remove and re-add the references from relative paths, the <HintPath> property should have "common\" or whatever your relative paths are.

The <HintPath> is determined at the time the assembly is added.

Hope this helps,
Brad

I am having a similar problem with references. I described my issue earlier in this thread: http://forums.asp.net/thread/1282531.aspx

I tried removing class library project references and readding them. But the reference was readded as an absolute path. I did not see <HintPath> added to my project. If anyone got this working, can you describe your steps in more details?

thanks

Andrew 

 

 

 

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:













dnn2 default bins - release or debug compile?

having problems compiling dnn 2.1.2 -- anybody else too?

vs.net 2005 beta 1 is released

deleting dnn 3.0.12 skins

site loading incorrectly.

login questions---help!

keepalive and child portals

custom skin for user registration area...

having a problem with iframe

core team request: refine the user interface

just finished my first dnn installation...it's not working

security issues

tab redirecturl and problems with ml version

learning dnn2

dnn 3.0.12 and aspnet_wp.exe memory issues

globalization issue in pa

javascript error using ftb - is it just me? (dnn 3.x)

dotnetnuke default search box errors

removing users completely from dnn 3

which file has the code for login

problem with css absolute positioning of something within a module

issue with latest forum update (forumblog_03.10.01_install.zip)

dnn and cs integration (ad hock solution)

portal blows up with the deletion of a pa

problems with installing dnn 3.1.0

column 'fieldtitle' does not belong to table userdefineddata.

startup error - access denied to 'd:\inetpub\wwwroot\web.config'. failed to start monitoring file changes.

idea on how to convert dnn to c#

dnn 3.0 + forums + gallery vs ngallery + community server clarification

dotnetnuke 3.3.1 / 4.3.1 point release

help!

adding fonts to freetextbox editor in dnn

3.x skin settings questions...

editurl parameters

suggestion for future versions - host header

anybody used mysitespace?

container css problems

clean installation search doesn't work?

container creation

no access after upgrading to dnn 3.2

static tabid & dyanmic tabid...

is there a knowledgebase module around?

dnn 3.1.1 log site bug

page controll on dnn 2.1.2

how to set printable property at run-time?

oracle data provider for dnn 3.1

security according to a group and a tab

disable membership

nagging vs error

attention, core development team. this is a critical error.

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT