APPLICATION ERROR: Project file (*.csproj or *.xproj) not found in the project folder and no assembly path found in the config file
See original GitHub issuePM> typegen -v generate
Generating files for project "."...
No config file found for project ".". Default configuration will be used.
Assembly path not found in the config file. Assembly file will be searched for recursively in the project's bin\.
APPLICATION ERROR: Project file (*.csproj or *.xproj) not found in the project folder and no assembly path found in the config file
at TypeGen.Cli.Business.ConfigProvider.GetDefaultAssemblyPath(String projectFolder) in D:\Google Drive\Projects\type-gen\src\TypeGen\TypeGen.Cli\Business\ConfigProvider.cs:line 106
at TypeGen.Cli.Business.ConfigProvider.UpdateConfigAssemblyPaths(TgConfig config, String projectFolder) in D:\Google Drive\Projects\type-gen\src\TypeGen\TypeGen.Cli\Business\ConfigProvider.cs:line 75
at TypeGen.Cli.Business.ConfigProvider.GetConfig(String configPath, String projectFolder) in D:\Google Drive\Projects\type-gen\src\TypeGen\TypeGen.Cli\Business\ConfigProvider.cs:line 48
at TypeGen.Cli.Program.Generate(String projectFolder, String configPath) in D:\Google Drive\Projects\type-gen\src\TypeGen\TypeGen.Cli\Program.cs:line 116
at TypeGen.Cli.Program.Main(String[] args) in D:\Google Drive\Projects\type-gen\src\TypeGen\TypeGen.Cli\Program.cs:line 78
The project is there so it looks like a bug
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
The project file <path>.csproj was not found when building ...
The Microsoft reference to this error seems to be an empty page.. I have found a workaround which I do not fully understand...
Read more >VS : How to solve error - The project file could not be ...
The problem lies with the nonexistent path of one or more projects that are stored in the solution file. You can solve this...
Read more >MSB4025: The project file could not be loaded. {0} - MSBuild
This error occurs when MSBuild tries to load and parse a solution file and create a project, but the project file could not...
Read more >Managing Dependencies in .NET: .csproj, .packages.config ...
NET Core; files and folders present in the project root folder (where the .csproj was first created) are considered part of the project....
Read more >Assembly not found if total reference path is too long
Scripting.JavaScript.dll in the csproj file. Concatinating the project folder path with the relative path gives you:
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
It probably has something to do with the current working directory. I think in the PM console you need to specify the project folder like this:
I think I found the problem. Occurs when the assembly name is different from the project name.