473,473 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Modified VBPROJ/CSPROJ files

balabaster
797 Recognized Expert Contributor
If you modify a CSPROJ or VBProj's source XML to use the UsingTask tag in order to create a new template (for example to add auto-incrementing versioning to every project I create automatically). I can save the template to the relevant directory and run devenv /setup to add my template to my visual studio build.

All this works just peachy except for one annoyance. Every time I load a project (either new or previously created using this template) it comes up with a security warning as you're loading it and asks you to select "Open as normal" or "Open for viewing"... I understand that this is reasonable behaviour to expect, but is there any way of suppressing this behaviour for my template - either in the IDE or the template file itself? In an ideal world I would be able to mark my template as "safe" so that it didn't trigger this warning - but the more I read, the more I suspect this isn't possible and that I'll just have to set the security level in my IDE to a lower level so that it doesn't flag me for any project - but I can't find a way to do this either.

Any ideas?
Mar 14 '08 #1
4 1853
kenobewan
4,871 Recognized Expert Specialist
Microsoft recommends that when using Visual Studio 2005, you do the following:

- Run Visual Studio with elevated administrator permissions
- Be a member of the "Administrators" group on the local machine
- Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu

If your problem is security/permissions, then this should fix it. HTH.
Mar 15 '08 #2
balabaster
797 Recognized Expert Contributor
Microsoft recommends that when using Visual Studio 2005, you do the following:

- Run Visual Studio with elevated administrator permissions
- Be a member of the "Administrators" group on the local machine
- Right-click the Visual Studio icon and select the "Run as administrator" option from the context menu

If your problem is security/permissions, then this should fix it. HTH.
My user account is an administrator account on my local computer, so I'm not sure exactly how to alleviate the issue... aside from this, that would do it for all projects.

Ideally what I'd like to do is register this template as safe so that I don't get flagged every time I open a project that was built on this template, but if I open another project that has a modified CSPROJ/VBPROJ file then I'd once again get flagged until I register that template. I was wondering if there's some option (like in devenv /setup) somewhere that I could register this template.

Any further thoughts?
Mar 16 '08 #3
kenobewan
4,871 Recognized Expert Specialist
Not that I'm aware of. Anyone had this problem before and knows a solution?

As far as I'm aware VS runs permissions based on your user account. The only option that I can think of is change the file permissions, but this would probably not work unless when saved it does not have full control through the administrator account.
Mar 16 '08 #4
balabaster
797 Recognized Expert Contributor
Not that I'm aware of. Anyone had this problem before and knows a solution?

As far as I'm aware VS runs permissions based on your user account. The only option that I can think of is change the file permissions, but this would probably not work unless when saved it does not have full control through the administrator account.
Well, I'll keep my eye open for a solution and post it here when I find it. Thanks for your help.
Mar 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Reza Alirezaei | last post by:
When I create a project in VS.NET 2003 ,there are two files with these extensions *.csproj and *.sln.what is the difference between thses two???
1
by: -DG- | last post by:
In the course of investigating differences between C# projects generated in VS2003 vs VS2005 (see my post about reformatting code), I've found big differences in the .csproj file. I haven't gone...
2
by: Matt | last post by:
When I tried to open an existing proj1.csproj in VS.NET 2003. It pops up a dialog saying "The project 'proj1.csproj' must be converted to the current project format. After it has been converted,...
2
by: mobilegolfer | last post by:
I'm helping a friend set up his dev environment. In trying to add an asp.net project to his solution we are stuck. The web's virtual directory (a ClearCase share) is defined and viewable from IIS. ...
7
by: Larry Woods | last post by:
I don't see the pattern. I have a couple of solutions that I acquired from someone else. When I load these, I see the .vbproj and .vbproj.user files in the Solution Explorer. BUT, when I create...
2
by: Allan Cammish | last post by:
Dear All I have the source code for a component that I purchased and although the source code files are for VB.NET, there is no .SLN or .VBPROJ file included. I have seen this before with...
6
by: Rich | last post by:
Hello, When I copy a VB web app from my workstation to my laptop (which has the exact same software as the workstation) or to a different virtual directory on the same workstation and then try...
5
by: sunyour | last post by:
I'm developing an application that takes a csproj file as input (and output). I've searched for a definition or schema file for the csproj xml-file to understand the possibilites and restrictions,...
4
by: Max2006 | last post by:
Hi, When I use Web Deployment Project to create a deployment image of my web site, It includes un-necessaty files such as *.csproj files. Can I disable the deployment of *.csproj files?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.