Reputation: 77
I'm developing an MVC6, .Net Core (dnx 451) web application where I've encountered a .dllnotfound exception.
Can anyone please tell me what is the build path for .net core/asp5 apps, so I can check the directory for the required .dll? Or how can I find out the build path? because it's not listed on properties window in Visual Studio?
My Project Directory -
C:\Users\eashan\Documents\FinalApp1
artifacts
src
FinalApp1.sln
global.json
I'm just looking to find out about the build path used in .Net Core/ASP5 web apps, but if anyone really wants to see more details about the error (Posted on StackOverflow)
Cheers
Upvotes: 2
Views: 1901
Reputation: 141732
Can anyone please tell me what is the build path for .net core/asp5 apps...
The build path is ..\artifacts\bin\YourProjectName
.
...how can I find out the build path?
Open the .xproj
file in a text editor. Look at the following sections.
<BaseIntermediateOutputPath
Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)
</BaseIntermediateOutputPath>
<OutputPath
Condition="'$(OutputPath)'=='' ">..\artifacts\bin\$(MSBuildProjectName)\
</OutputPath>
...so I can check the directory for the required .dll?
To view DLLs, ask Visual Studio to produce outputs on build. Step (3) is the key.
C:/temp/
artifacts/
bin/
WebApplication1/
Debug/
app/
project.json
dnx451
WebApplication1.dll
WebApplication1.pdb
WebApplication1.xml
dnxcore50
WebApplication1.dll
WebApplication1.pdb
WebApplication1.xml
WebApplication1.1.0.0.nupkg
WebApplication1.1.0.0.symbols.nupkg
obj/
WebApplication1/
Debug/
WebApplication1/
project.json
project.lock.json
Project_Readme.html
Properties
launchSettings.json
Startup.cs
WebApplication1.xproj
WebApplication1.xproj.user
wwwroot
web.config
WebApplication1.sln
Upvotes: 1
Reputation: 17444
There isn't build directory, ASP.Net Core is build in memory with Roslyn
However, you can produce binaries with dnu
commands: dnu build
, dnu pack
or dnu publish
Check out this Wiki page for more information
Upvotes: 2