Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 06, 2012 11:55 AM by shree_ars
Participant
1395 Points
776 Posts
Nov 06, 2012 07:31 AM|LINK
Hi all,
I have one doubt w.r.t to file name in MVC application.
Is fileName is case sensitive, when relates to physicalfilename and filename in soluiton explorer.
Under my controller consider the below file
====================================================
FileName in solutionexplorer : TestA.cs
className : TestAccount.cs
Physical FileName : Testa.cs
So as of above details, the fileName in solutionexplorer and physical filename gets differ in the character case.
While building its not making any issue.
Will it make issue at runtime.. will it map to correct file, even if character case get change.
Thankyou, inAdvance.
All-Star
137698 Points
22155 Posts
Moderator
MVP
Nov 06, 2012 08:01 AM|LINK
In windows, not.
Nov 06, 2012 08:32 AM|LINK
I cant get u
Nov 06, 2012 09:11 AM|LINK
You can not create 2 files with same name, different by uppercase, in Windows. So it's not case sensitive.
Nov 06, 2012 09:27 AM|LINK
not two files.. single file only.
But the fileName in solution explorer and windows explorer will get differ in case.
Nov 06, 2012 09:36 AM|LINK
shree_ars But the fileName in solution explorer and windows explorer will get differ in case.
exclude from solution. close VS. Include. Then will be the same
Nov 06, 2012 10:36 AM|LINK
yes.. its ok.
But my question is even though if its differ in case, will it map correctly at runtime.?
or what are the issues if they differ..?
18722 Points
2900 Posts
Nov 06, 2012 10:53 AM|LINK
shree_ars or what are the issues if they differ..?
There is no issue with that, at run time all matters is your class names.
Nov 06, 2012 11:02 AM|LINK
CPrakash82
Will it make issue if we ran fxcop or any other code review or testing tool or some other performance analysis tool?
Nov 06, 2012 11:31 AM|LINK
I don't think so.
shree_ars
Participant
1395 Points
776 Posts
Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 07:31 AM|LINK
Hi all,
I have one doubt w.r.t to file name in MVC application.
Is fileName is case sensitive, when relates to physicalfilename and filename in soluiton explorer.
Under my controller consider the below file
====================================================
FileName in solutionexplorer : TestA.cs
className : TestAccount.cs
Physical FileName : Testa.cs
====================================================
So as of above details, the fileName in solutionexplorer and physical filename gets differ in the character case.
While building its not making any issue.
Will it make issue at runtime.. will it map to correct file, even if character case get change.
Thankyou, inAdvance.
ignatandrei
All-Star
137698 Points
22155 Posts
Moderator
MVP
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 08:01 AM|LINK
In windows, not.
shree_ars
Participant
1395 Points
776 Posts
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 08:32 AM|LINK
I cant get u
ignatandrei
All-Star
137698 Points
22155 Posts
Moderator
MVP
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 09:11 AM|LINK
You can not create 2 files with same name, different by uppercase, in Windows. So it's not case sensitive.
shree_ars
Participant
1395 Points
776 Posts
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 09:27 AM|LINK
not two files.. single file only.
But the fileName in solution explorer and windows explorer will get differ in case.
ignatandrei
All-Star
137698 Points
22155 Posts
Moderator
MVP
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 09:36 AM|LINK
exclude from solution. close VS. Include. Then will be the same
shree_ars
Participant
1395 Points
776 Posts
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 10:36 AM|LINK
yes.. its ok.
But my question is even though if its differ in case, will it map correctly at runtime.?
or what are the issues if they differ..?
CPrakash82
All-Star
18722 Points
2900 Posts
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 10:53 AM|LINK
There is no issue with that, at run time all matters is your class names.
shree_ars
Participant
1395 Points
776 Posts
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 11:02 AM|LINK
Will it make issue if we ran fxcop or any other code review or testing tool or some other performance analysis tool?
CPrakash82
All-Star
18722 Points
2900 Posts
Re: Is fileName casesensitive w.r.t to physicalFileName?
Nov 06, 2012 11:31 AM|LINK
I don't think so.