History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-28355
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Lomov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

'Duplicate definition' error when second type is declared in a file with Compile property set to 'None'

Created: 30 Aug 06 13:04   Updated: 31 May 07 16:22
Component/s: PSI
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive ConsoleApplication3.zip (7 kb)


Build: 259


 Description  « Hide
The code highlighter shows an error on the class definition if the same class exists(copy-paste class file) in another file and that file has 'Build Action' set to 'None' .

Please find attached a VS2005 project.

Steps to reproduce 2 bugs:

  • When you open this solution, the 'Class1' in 'Class1.cs' should be highligted in red ("Dupplicate definition ....").
  • Then set the 'BuildAction' of 'Copy of Class1.cs' to 'None' and compile <- at this stage Class1 is still highligted in red!
  • Then save all files and close VS
  • Open the solution again
  • The 'Class1' in 'Class1.cs' should not be highligted
  • Set the 'BuildAction' of 'Copy of Class1.cs' to 'Compile' and compile solution <- at this stage Class1 is not highligted in red!


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.