C
C#19h ago
hdmark

Asp.net Core bin vs bin/debug

Hi - hopefully easy question but i have a legacy project im taking over. If i set output folder to bin, i can debug no worries. if i use bin/debug and bin/release, then bin/ stays empty (obv the bin/debug still gets created) but when i debug, i get dll cant be found. I thought ive always kept bin clean and use bin/debug before but now im not sure
49 Replies
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
ive always deleted those 2 when i was back in the vb.net world
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
becuase build rebuilt them
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
and i didnt check in bin/obj into git ever
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
but when i debug, i get dll not found errors if theres no dlls in bin
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
they are in bin/debug, but not bin
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
so if i want to build in bin different for debug/release tho?
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
how do i manage diferent builds ?
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
in my project settings, should i go back and change output folder for all configurations back to bin/ and not bin/debug vs bin/release?
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
i can delete those 2 in full
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
the entire bin and obj folders
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
yes but for my .csproj file
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
where should i set output to
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
No description
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
so delete whats in there and leave it empty
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
its a work repo, i cant
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
i guess the root of it is every project i worked on in the past had bin/ bin/release bin/debug, and now its not working but ill make a new project and use that as my goby
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
im going back because now i think im using .net framework i thought this project was core but that might have been a bad assumption ya its framework thats dumb
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
i thought it was. i could have sworn i saw core thorughout the project
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
.net framework 4.6.1 apparently
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
there is a global asax
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
its fine, im gonna do what you said and make a new project as a template
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP16h ago
that was a good call i hadnt thought about that
Unknown User
Unknown User16h ago
Message Not Public
Sign In & Join Server To View
hdmark
hdmarkOP15h ago
lol okay will do, ill make a new one
Unknown User
Unknown User15h ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server