question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Namespace start by number

See original GitHub issue

Release Type: Official Release

Version: 3.1.0.1-beta02-0752

Platform(s): I only test on Windows

Describe the bug When I make a new project which name is start by Number (e.g 3DGame ),Xenko will generate source code file with name of project, not namespce in ‘Create a game…’ Dialog

To Reproduce Steps to reproduce the behavior:

  1. In “Project selection” ,select New project -> General -> New game , name project 3DGame 2.Click Select 3.In “Create a game…”, type ThreeDGame in namespace, and click OK

Expected behavior namespace in 3DGame.Windows\3DGameApp.cs should be ThreeDGame.Windows

Additional context

using Xenko.Engine;

namespace 3DGame.Windows//Here is ERROR
{
    class 3DGameApp//Here is ERROR
    {
        static void Main(string[] args)
        {
            using (var game = new Game())
            {
                game.Run();
            }
        }
    }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
herocrabcommented, Apr 20, 2021

@Eideren it looks as though this issue was resolved and the PR merged. Can this be closed?

0reactions
Eiderencommented, Apr 28, 2020

This is mostly fixed, the window where you specify platforms and such when creating a project blocks user if they don’t have a valid namespace but the generated *.Windows (linux, osx, etc.) and the class hosting their main still carry the project name which may or may not have an invalid name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using numbers in file/directory name fails for namespace
I have a directory structure where I use years to categorize. The problem is that when I try to namespace a file located...
Read more >
Why do so many namespaces start with com
I am wondering if anyone found a way to solve the problem of having a company name that starts with a number like...
Read more >
How to find a namespace number - River Writes
If I'm looking for a namespace number, I go to Special:AllPages (that link will take you to Wikipedia), pick the namespace in question...
Read more >
Namespaces
In Kubernetes, namespaces provides a mechanism for isolating groups of resources within a single cluster. Names of resources need to be ...
Read more >
Namespace in C++ | Set 1 (Introduction)
A namespace is a declarative region that provides a scope to the identifiers (names of functions, variables or other user-defined data types) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found