Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Feb CTP can't generate an application definition

 
 
Old 03-13-2006   #1 (permalink)
Philippe Lavoie


 
 

Feb CTP can't generate an application definition

The FEB CTP can't compile the MyApp.xaml file. It insists of doing the
following

namespace ApplicationX {
using ...


instead of puttin the using statement outside of the namespace like it
does for a page or a windows, i.e.

using ....
namespace Application X{


I'm reverting back to the January CTP. Hopefully, the next CTP works a
bit better...

Phil

My System SpecsSystem Spec
Old 03-14-2006   #2 (permalink)
Rob Relyea [MSFT]


 
 

Re: Feb CTP can't generate an application definition

Philippe-
Sorry to hear of the problem.

When I look at MyApp.g.cs in obj\debug under my project and compare that to
Page1.g.cs, they both have
namespace ApplicationX {
using ...

So I am not sure what you mean that Page an ApplicationDefinition work
differently.

You were talking about the code generated during build in .g.cs files,
right?

Can you give us a small project that shows the problems you are having? Or
describe them in more detail.
What compile or runtime errors are you getting?

Thanks,
Rob Relyea
WPF, PM
http://longhornblogs.com/rrelyea


"Philippe Lavoie" <philippe.lavoie@cactus.ca> wrote in message
news:%23jaKnmrRGHA.4384@tk2msftngp13.phx.gbl...
> The FEB CTP can't compile the MyApp.xaml file. It insists of doing the
> following
>
> namespace ApplicationX {
> using ...
>
>
> instead of puttin the using statement outside of the namespace like it
> does for a page or a windows, i.e.
>
> using ....
> namespace Application X{
>
>
> I'm reverting back to the January CTP. Hopefully, the next CTP works a bit
> better...
>
> Phil



My System SpecsSystem Spec
Old 03-14-2006   #3 (permalink)
Philippe Lavoie


 
 

Re: Feb CTP can't generate an application definition

I checked with the Jan CTP and the behavior is indeed to have the using
inside the namespace.

The errors I had were related to the fact that if I'm mapping to a local
data structure. If I would set the clr-namespace to

xmlns:src="clr-namespace:ApplicationX.Data"

then it would complain that it couldn't find the namespace
ApplicationX.ApplicationX.Data

the same would happen for the code behind Class

x:Class="ApplicationX.Page1"

would give me, can't find ApplicationX.ApplicationX.Page1

and x:Class="Page1" would give me an error with the generated code
which would state that it was missing a parameterless constructor.

I hope this helps. I'm typing this from memory because I removed the Feb
CTP. I need to produce a demo soon and not being able to generate the
application file kind of prevented that

Phil



Rob Relyea [MSFT] wrote:
> Philippe-
> Sorry to hear of the problem.
>
> When I look at MyApp.g.cs in obj\debug under my project and compare that to
> Page1.g.cs, they both have
> namespace ApplicationX {
> using ...
>
> So I am not sure what you mean that Page an ApplicationDefinition work
> differently.
>
> You were talking about the code generated during build in .g.cs files,
> right?
>
> Can you give us a small project that shows the problems you are having? Or
> describe them in more detail.
> What compile or runtime errors are you getting?
>
> Thanks,
> Rob Relyea
> WPF, PM
> http://longhornblogs.com/rrelyea
>
>
> "Philippe Lavoie" <philippe.lavoie@cactus.ca> wrote in message
> news:%23jaKnmrRGHA.4384@tk2msftngp13.phx.gbl...
>
>>The FEB CTP can't compile the MyApp.xaml file. It insists of doing the
>>following
>>
>>namespace ApplicationX {
>> using ...
>>
>>
>>instead of puttin the using statement outside of the namespace like it
>>does for a page or a windows, i.e.
>>
>>using ....
>>namespace Application X{
>>
>>
>>I'm reverting back to the January CTP. Hopefully, the next CTP works a bit
>>better...
>>
>>Phil

>
>
>

My System SpecsSystem Spec
Old 03-15-2006   #4 (permalink)
Keith Patrick


 
 

Re: Feb CTP can't generate an application definition

That using-inside-the-namespace thing is a standard that I saw mentioned in
one of Brad Abrams (he worked on API standards for a while) as the preferred
way of doing things. ASP.Net user controls automatically get generated that
way, but other classes do not; I emailed him for an explanation as to the
rule, since I haven't found anything saying what the effect even is, but
never got a response. I really dislike rules/standards that are proposed
without an kind of explanation, but if the compiler is now trying to enforce
that, it's even more frustrating.


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Links generate "Application Not Found" error Vista mail
VPN & Cannot generate SSPI context. Vista networking & sharing
Generate script VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46