Unable to open project properties on generated .csproj file

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Clive Tong, nick.maidment

Unable to open project properties on generated .csproj file

Postby evgeny » Mon Feb 21, 2011 12:10 am

I used Reflector 7 beta 4 to disassemble WaIISHost.exe from Azure SDK 1.3, which is a .NET 3.5 console EXE. The csproj file it generated opens successfully in Visual Studio 2010, however when I try to open the properties page for it I get

An error occurred trying to load the project properties window. Close the window and try again.
Error HRESULT E_FAIL has been returned from a call to a COM component.
evgeny
 
Posts: 5
Joined: Sun Feb 20, 2011 11:07 pm

Postby alehandro » Mon Feb 21, 2011 11:40 pm

usually it's related to your installed .net version(s)
which one do you have?
alehandro
 
Posts: 35
Joined: Tue Nov 16, 2010 12:08 am

Postby evgeny » Wed Feb 23, 2011 4:13 am

I have .NET 4.0 and I'm opening the project in Visual Studio 2010 Premium.
evgeny
 
Posts: 5
Joined: Sun Feb 20, 2011 11:07 pm

Postby alehandro » Wed Feb 23, 2011 8:00 pm

Try to change your proj into .NET 4.0
alehandro
 
Posts: 35
Joined: Tue Nov 16, 2010 12:08 am

Postby couldnotforget » Fri Feb 25, 2011 3:29 am

This bug has been existed for a long time.
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby couldnotforget » Fri Feb 25, 2011 3:44 am

I had tested once again.

I create a new WindowsForm Application,and don't write any code myself,and then compile it.

No matter which TargetFrameworkVerion my program is , after decompiling, I will get this error from VS2010.
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby couldnotforget » Fri Feb 25, 2011 4:51 am

I had installed vs2008 just now, and I found that there was no error in vs2008.

So, this bug is only existed in vs2010
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby alehandro » Sun Feb 27, 2011 9:35 pm

report to MS? :)
alehandro
 
Posts: 35
Joined: Tue Nov 16, 2010 12:08 am

Re:

Postby couldnotforget » Mon Feb 28, 2011 10:05 am

alehandro wrote:report to MS? :)


No, this bug is from Reflector.

The .csproj file created by Reflector is bad format for VS2010.
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby couldnotforget » Mon Feb 28, 2011 10:26 am

Oh,my god ,I know;

<PropertyGroup>
<Configuration Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">Debug</Configuration>
......


In Vs2010, "Configuration" is not a subnode

like this:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">

.....
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby Clive Tong » Mon Feb 28, 2011 1:18 pm

Thanks for investigating that. I've logged it as RP-1133 and will take a look at it this week.
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm

Postby Clive Tong » Wed Mar 02, 2011 4:08 pm

I've changed the projects that are emitted to match that suggested format.
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm

Re:

Postby couldnotforget » Thu Mar 03, 2011 1:10 pm

Clive Tong wrote:I've changed the projects that are emitted to match that suggested format.


in beta 5?
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Postby Clive Tong » Thu Mar 03, 2011 2:32 pm

I'm afraid not. I made the change after the beta went out. We may do another beta very soon.
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm

Postby couldnotforget » Fri Mar 04, 2011 2:19 am

another question:

I am from China, Chinese string can not be transformed when the language is not C# (such as VB.net,IL)

string mystr="请选择目标进程"(C#)

string mystr="\\u8bf7\\u9009\\u62e9\\u76ee\\u6807\\u8fdb\\u7a0b" (Others)

But ReflexIL can
couldnotforget
 
Posts: 12
Joined: Sun Dec 19, 2010 2:39 am

Next

Return to .NET Reflector 7 EAP

Who is online

Users browsing this forum: No registered users and 1 guest