1

Topic: .net core OutDir

Hello, faced the following problem. At the project assembly to a way adds an artifact in a type "netstandard2.0" . not in ProjectPath\bin\Debug, and in ProjectPath\bin\Debug\netstandard2.0\Pogugliv, I  that recommend to add in PropertyGroup <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> the Part of projects  started to perceive this adjustment though created an empty folder "netstandard2.0", but wrote as I and wanted, in ProjectPath\bin\Debug. Except one , I can not understand where the problem is buried here csproj the project which refuses to write at all in bin\Debug. Coherent projects Kom. Domain, Kom. IBL, Kom. IDAL are written in bin\Debug as I and expected but the main Kom. BL creates to itself a directory netstandard2.0 <Project Sdk = "Microsoft. NET.Sdk "ToolsVersion =" 15.0"> <PropertyGroup Label ="Globals"> <SccProjectName> SAK </SccProjectName> <SccProvider> SAK </SccProvider> <SccAuxPath> SAK </SccAuxPath> <SccLocalPath> SAK </SccLocalPath> </PropertyGroup> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <PropertyGroup Condition =" ' $ (Configuration) | $ (Platform) ' == ' Debug|AnyCPU ' "> <PlatformTarget> x64 </PlatformTarget> <OutputPath> bin\Debug </OutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> </PropertyGroup> <ItemGroup> <PackageReference Include ="Autofac"Version =" 4.6.2"/> <PackageReference Include =" Microsoft. Extensions. DependencyInjection "Version =" 2.0.0"/> <PackageReference Include =" Microsoft. Extensions. Options "Version =" 2.0.0"/> <PackageReference Include =" Microsoft. NET.Sdk "Version ="1.0.0-alpha-20161104-2"/> <PackageReference Include =" NETStandard. Library "Version =" 2.0.1"/> <PackageReference Include =" Newtonsoft. Json "Version ="9.0.2-beta1"/> </ItemGroup> <ItemGroup> <ProjectReference Include =".\Kom. Domain\Kom. Domain.csproj "/> <ProjectReference Include =".\Kom. IBL\Kom. IBL.csproj "/> <ProjectReference Include =".\Kom. IDAL\Kom. IDAL.csproj "/> </ItemGroup> </Project>

2

Re: .net core OutDir

Hello, codenet, you wrote: a C> here csproj the project which refuses to write at all in bin\Debug. A C> a C> <PropertyGroup Condition = "' $ (Configuration) | $ (Platform) ' == ' Debug|AnyCPU '"> a C> <PlatformTarget> x64 </PlatformTarget> a C> <OutputPath> bin\Debug </OutputPath> a C> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> a C> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> a C> </PropertyGroup> a C> Navskidku, try to carry out adjustments AppendTargetFrameworkToOutputPath and AppendRuntimeIdentifierToOutputPath out of a condition (attribute ` Condition `). Perhaps at you a platform not ` AnyCPU ` so redefinition of those adjustments is not fulfilled. <PropertyGroup> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> </PropertyGroup> <PropertyGroup Condition = "' $ (Configuration) | $ (Platform) ' == ' Debug|AnyCPU '"> <PlatformTarget> x64 </PlatformTarget> <OutputPath> bin\Debug </OutputPath> </PropertyGroup>

3

Re: .net core OutDir

Hello, Qbit86, you wrote: Q> Hello, codenet, you wrote: a C>> here csproj the project which refuses to write at all in bin\Debug. A C>> a C>> <PropertyGroup Condition = "' $ (Configuration) | $ (Platform) ' == ' Debug|AnyCPU '"> a C>> <PlatformTarget> x64 </PlatformTarget> a C>> <OutputPath> bin\Debug </OutputPath> a C>> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> a C>> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> a C>> </PropertyGroup> a C>> Q> Navskidku, try to carry out adjustments AppendTargetFrameworkToOutputPath and AppendRuntimeIdentifierToOutputPath out of a condition (attribute ` Condition `). Perhaps at you a platform not ` AnyCPU ` so redefinition of those adjustments is not fulfilled. Q> Q> <PropertyGroup> Q> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> Q> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> Q> </PropertyGroup> Q> <PropertyGroup Condition = "' $ (Configuration) | $ (Platform) ' == ' Debug|AnyCPU '"> Q> <PlatformTarget> x64 </PlatformTarget> Q> <OutputPath> bin\Debug </OutputPath> Q> </PropertyGroup> Q> the Assumption interesting, but unfortunately not that Carried out separate group <PropertyGroup> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> </PropertyGroup> the effect removed , one. I noted studio not feeblly , . deleted "Characters of the conditional compilation", and studio to me returns persistently "NETSTANDARD2_0; NETSTANDARD2_0" and itself adds in OutPath + netstandard2.0. If  dotnet build "path\project"-o "path\out", all without problems and superfluous .

4

Re: .net core OutDir

The same effect tried too most in . I in project properties remove all signatures netstandard2.0, I save, I do . I come again into project properties, that I removed all returned on places.

5

Re: .net core OutDir

Hello, codenet, you wrote: the C> Hello, faced the following problem. The C> At the project assembly to a way adds an artifact in a type "netstandard2.0" a C> . not in ProjectPath\bin\Debug, and in ProjectPath\bin\Debug\netstandard2.0\a C> Pogugliv, I  that Cs> Here a piece of mine csproj recommend to add in PropertyGroup a C> C><AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> C><AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>. Like anything superfluous does not form. Files need to be added in the project hands. <Project Sdk = "Microsoft. NET.Sdk "> <PropertyGroup> <EnableDefaultItems>false</EnableDefaultItems> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> </PropertyGroup> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> <RootNamespace>lcpi.data.oledb</RootNamespace> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath> <OutputPath> bin\vs2017_nets2.0 _ $ (Configuration) \</OutputPath> <IntermediateOutputPath> obj\vs2017_nets2.0 _ $ (Configuration) \</IntermediateOutputPath> <KeyContainerName>lcpi.net.code.keys</KeyContainerName> </PropertyGroup> <PropertyGroup Condition =" ' $ (Configuration) | $ (Platform) ' == ' Debug|AnyCPU ' "> <AssemblyName>lcpi.data.oledb.nets2_0.debug</AssemblyName> <DefineConstants>BUILD_CONF__NETSTANDARD2_0;TRACE;DEBUG</DefineConstants> <Optimize> false </Optimize> </PropertyGroup> <PropertyGroup Condition =" ' $ (Configuration) | $ (Platform) ' == ' Release|AnyCPU ' "> <AssemblyName>lcpi.data.oledb.nets2_0</AssemblyName> <DefineConstants>BUILD_CONF__NETSTANDARD2_0;</DefineConstants> <Optimize> true </Optimize> </PropertyGroup>