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.

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 issue
PM> 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:closed
  • Created 4 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jburzynskicommented, Jul 30, 2019

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:

PM> typegen -v -p "MyProjectName" generate
0reactions
viniciusverasdossantoscommented, Sep 1, 2019

I think I found the problem. Occurs when the assembly name is different from the project name.

Read more comments on GitHub >

github_iconTop 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 >

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