Namespace start by number
See original GitHub issueRelease 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:
- 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Eideren it looks as though this issue was resolved and the PR merged. Can this be closed?
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.