Closed neptunao closed 5 years ago
That sound like a good idea! However, I'd like to have both libraries in the package: a .NET Framework 4.0 (as it is now) and a new .NET Core (1.0? To me, the lower, the better). Are you interested in contributing?
I think it should not be limited for .NET Core, .NET Standard seems to be more convenient for users (Mono, etc.) And yeah, I think it's not a big deal to have both libraries there. About contributing - yeah, I can try do it in my spare time.
Sorry, I meant .NET Standard :) Thanks.
An option would probably to have a shared project holding all the code, and a .NET Framework 4.0 plus a .NET Standard 1.x project that would build for each target (I don't know if there is a better way to have a mixed build).
I've found that you actualy can specify several target frameworks in the project file. Can we use it and keep only one .csproj ?
That would be great!
I created a branch named netstandard, but projects are separated, so I like you idea much more.
Thanks. However, I can't build it even without modifications, because of TransformOnBuild task failure. Here is the output of msbuild:
2>------ Rebuild All started: Project: ArxOne.FtpTest, Configuration: Debug Any CPU ------
2>Build started 28.11.2018 21:27:03.
2>Building with tools version "15.0".
2>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>Target "EnableIntermediateOutputPathMismatchWarning" skipped, due to false condition; ('$(RestoreProjectStyle)' == 'PackageReference') was evaluated as ('' == 'PackageReference').
2>Target "_CheckForInvalidConfigurationAndPlatform" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "BeforeRebuild" depends on it):
2>Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
2>Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
2>Task "Message"
2> Configuration=Debug
2>Done executing task "Message".
2>Task "Message"
2> Platform=AnyCPU
2>Done executing task "Message".
2>Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('bin\Debug\' != '' and !HasTrailingSlash('bin\Debug\')).
2>Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
2>Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('obj\Debug\' != '' and !HasTrailingSlash('obj\Debug\')).
2>Task "Error" skipped, due to false condition; ( '$(_InitialMSBuildProjectExtensionsPath)' != '' And '$(MSBuildProjectExtensionsPath)' != '$(_InitialMSBuildProjectExtensionsPath)' ) was evaluated as ( 'E:\coding\FTP\ArxOne.FtpTest\obj\' != '' And 'E:\coding\FTP\ArxOne.FtpTest\obj\' != 'E:\coding\FTP\ArxOne.FtpTest\obj\' ).
2>Task "Warning" skipped, due to false condition; ( '$(EnableBaseIntermediateOutputPathMismatchWarning)' == 'true' And '$(_InitialBaseIntermediateOutputPath)' != '$(BaseIntermediateOutputPath)' And '$(BaseIntermediateOutputPath)' != '$(MSBuildProjectExtensionsPath)' ) was evaluated as ( '' == 'true' And 'obj\' != 'obj\' And 'obj\' != 'E:\coding\FTP\ArxOne.FtpTest\obj\' ).
2>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "ArxOne.FtpTest.csproj".
2>Target "BeforeRebuild" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Rebuild" depends on it):
2>Done building target "BeforeRebuild" in project "ArxOne.FtpTest.csproj".
2>Target "BeforeClean" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Clean" depends on it):
2>Done building target "BeforeClean" in project "ArxOne.FtpTest.csproj".
2>Target "UnmanagedUnregistration" skipped, due to false condition; ((('$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)' or '$(RegisterForComInterop)' != 'true' or '$(OutputType)' != 'library') or
2> ('$(_AssemblyTimestampBeforeCompile)' == '')) and
2> Exists('@(_UnmanagedRegistrationCache)')) was evaluated as ((('' != '' or '' != 'true' or 'Library' != 'library') or
2> ('' == '')) and
2> Exists('obj\ArxOne.FtpTest.csproj.UnmanagedRegistration.cache')).
2>Target "CoreClean" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Clean" depends on it):
2>Task "Delete"
2> File "obj\Debug\\TempCA\ArxOne.FtpTest.pdb" doesn't exist. Skipping.
2> File "obj\Debug\\TempCA\ArxOne.FtpTest.dll" doesn't exist. Skipping.
2>Done executing task "Delete".
2>Task "ReadLinesFromFile"
2>Done executing task "ReadLinesFromFile".
2>Task "FindUnderPath"
2> Comparison path is "bin\Debug\".
2>Done executing task "FindUnderPath".
2>Task "FindUnderPath"
2> Comparison path is "obj\Debug\".
2>Done executing task "FindUnderPath".
2>Task "Delete"
2>Done executing task "Delete".
2>Task "RemoveDuplicates"
2>Done executing task "RemoveDuplicates".
2>Task "MakeDir"
2> Creating directory "obj\Debug\".
2>Done executing task "MakeDir".
2>Task "WriteLinesToFile"
2>Done executing task "WriteLinesToFile".
2>Done building target "CoreClean" in project "ArxOne.FtpTest.csproj".
2>Target "AssignProjectConfiguration" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "PrepareProjectReferences" depends on it):
2>Task "AssignProjectConfiguration"
2> Project reference "..\ArxOne.Ftp\ArxOne.Ftp.csproj" has been assigned the "Debug|AnyCPU" configuration.
2>Done executing task "AssignProjectConfiguration".
2>Done building target "AssignProjectConfiguration" in project "ArxOne.FtpTest.csproj".
2>Target "_SplitProjectReferencesByFileExistence" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "PrepareProjectReferences" depends on it):
2>Using "ResolveNonMSBuildProjectOutput" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
2>Task "ResolveNonMSBuildProjectOutput"
2> Resolving project reference "..\ArxOne.Ftp\ArxOne.Ftp.csproj".
2> Project reference "..\ArxOne.Ftp\ArxOne.Ftp.csproj" has not been resolved.
2>Done executing task "ResolveNonMSBuildProjectOutput".
2>Done building target "_SplitProjectReferencesByFileExistence" in project "ArxOne.FtpTest.csproj".
2>Target "_GetProjectReferenceTargetFrameworkProperties" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "PrepareProjectReferences" depends on it):
2>Task "MSBuild"
2> Global Properties:
2> Configuration=Debug
2> Platform=AnyCPU
2> Removing Properties:
2> TargetFramework
2> RuntimeIdentifier
2>Building with tools version "15.0".
2>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>Target "GetTargetFrameworks" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.Ftp\ArxOne.Ftp.csproj" (entry point):
2>Done building target "GetTargetFrameworks" in project "ArxOne.Ftp.csproj".
2>Done executing task "MSBuild".
2>Using "GetReferenceNearestTargetFrameworkTask" task from assembly "E:\Program Files\Visual Studio 2017\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll".
2>Task "GetReferenceNearestTargetFrameworkTask"
2> (in) CurrentProjectTargetFramework '.NETFramework,Version=v4.0'
2> (in) FallbackTargetFrameworks ''
2> (in) AnnotatedProjectReferences '..\ArxOne.Ftp\ArxOne.Ftp.csproj'
2> (out) AssignedProjects '..\ArxOne.Ftp\ArxOne.Ftp.csproj'
2>Done executing task "GetReferenceNearestTargetFrameworkTask".
2>Done building target "_GetProjectReferenceTargetFrameworkProperties" in project "ArxOne.FtpTest.csproj".
2>Target "PrepareProjectReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "CleanReferencedProjects" depends on it):
2>Done building target "PrepareProjectReferences" in project "ArxOne.FtpTest.csproj".
2>Target "CleanReferencedProjects" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Clean" depends on it):
2>Task "MSBuild" skipped, due to false condition; ('$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' != 'true' and 'true' == 'true' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '').
2>Done building target "CleanReferencedProjects" in project "ArxOne.FtpTest.csproj".
2>Target "CleanPublishFolder" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Clean" depends on it):
2>Task "RemoveDir" skipped, due to false condition; ('$(PublishDir)'=='$(OutputPath)app.publish\' and Exists('$(PublishDir)')) was evaluated as ('bin\Debug\app.publish\'=='bin\Debug\app.publish\' and Exists('bin\Debug\app.publish\')).
2>Done building target "CleanPublishFolder" in project "ArxOne.FtpTest.csproj".
2>Target "AfterClean" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Clean" depends on it):
2>Done building target "AfterClean" in project "ArxOne.FtpTest.csproj".
2>Target "EntityClean" skipped, due to false condition; ('@(EntityDeploy)' != '') was evaluated as ('' != '').
2>Target "Clean" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Rebuild" depends on it):
2>Done building target "Clean" in project "ArxOne.FtpTest.csproj".
2>Target "CleanXsdCodeGen" in file "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.ServiceModel.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Rebuild" depends on it):
2>Task "Delete"
2>Done executing task "Delete".
2>Done building target "CleanXsdCodeGen" in project "ArxOne.FtpTest.csproj".
2>Target "EntityDeploy" skipped, due to false condition; ('@(EntityDeploy)' != '') was evaluated as ('' != '').
2>Target "CopyTaskAssemblyToTempFolder" in file "E:\coding\FTP\packages\Clarius.TransformOnBuild.1.21.0\build\Clarius.TransformOnBuild.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "BeforeBuild" depends on it):
2>Task "Copy"
2> Creating directory "C:\Users\naept_000\AppData\Local\Temp\abdd8be6-6134-4220-9270-682ebb7d9c33".
2> Copying file from "E:\coding\FTP\packages\Clarius.TransformOnBuild.1.21.0\build\Clarius.TransformOnBuild.MSBuild.Task.dll" to "C:\Users\naept_000\AppData\Local\Temp\abdd8be6-6134-4220-9270-682ebb7d9c33\Clarius.TransformOnBuild.MSBuild.Task.dll".
2>Done executing task "Copy".
2>Done building target "CopyTaskAssemblyToTempFolder" in project "ArxOne.FtpTest.csproj".
2>Target "BeforeBuild" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Build" depends on it):
2>Done building target "BeforeBuild" in project "ArxOne.FtpTest.csproj".
2>Target "TransformOnBuild" in file "E:\coding\FTP\packages\Clarius.TransformOnBuild.1.21.0\build\Clarius.TransformOnBuild.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "Build" depends on it):
2>Task "MSBuild"
2> Global Properties:
2> FakePropertyToEnsureThoseTargetsWillRunAgain=true
2>Building with tools version "15.0".
2>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>Target "BeforeResolveReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveReferences" depends on it):
2>Done building target "BeforeResolveReferences" in project "ArxOne.FtpTest.csproj".
2>Target "AssignProjectConfiguration" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveReferences" depends on it):
2>Task "AssignProjectConfiguration"
2> Project reference "..\ArxOne.Ftp\ArxOne.Ftp.csproj" has been assigned the "Debug|AnyCPU" configuration.
2>Done executing task "AssignProjectConfiguration".
2>Done building target "AssignProjectConfiguration" in project "ArxOne.FtpTest.csproj".
2>Target "AssignProjectConfiguration" skipped. Previously built successfully.
2>Target "_SplitProjectReferencesByFileExistence" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "PrepareProjectReferences" depends on it):
2>Task "ResolveNonMSBuildProjectOutput"
2> Resolving project reference "..\ArxOne.Ftp\ArxOne.Ftp.csproj".
2> Project reference "..\ArxOne.Ftp\ArxOne.Ftp.csproj" has not been resolved.
2>Done executing task "ResolveNonMSBuildProjectOutput".
2>Done building target "_SplitProjectReferencesByFileExistence" in project "ArxOne.FtpTest.csproj".
2>Target "_GetProjectReferenceTargetFrameworkProperties" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "PrepareProjectReferences" depends on it):
2>Task "MSBuild"
2> Global Properties:
2> Configuration=Debug
2> Platform=AnyCPU
2> Removing Properties:
2> TargetFramework
2> RuntimeIdentifier
2>Building with tools version "15.0".
2>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>Target "GetTargetFrameworks" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.Ftp\ArxOne.Ftp.csproj" (entry point):
2>Done building target "GetTargetFrameworks" in project "ArxOne.Ftp.csproj".
2>Done executing task "MSBuild".
2>Using "GetReferenceNearestTargetFrameworkTask" task from assembly "E:\Program Files\Visual Studio 2017\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll".
2>Task "GetReferenceNearestTargetFrameworkTask"
2> (in) CurrentProjectTargetFramework '.NETFramework,Version=v4.0'
2> (in) FallbackTargetFrameworks ''
2> (in) AnnotatedProjectReferences '..\ArxOne.Ftp\ArxOne.Ftp.csproj'
2> (out) AssignedProjects '..\ArxOne.Ftp\ArxOne.Ftp.csproj'
2>Done executing task "GetReferenceNearestTargetFrameworkTask".
2>Done building target "_GetProjectReferenceTargetFrameworkProperties" in project "ArxOne.FtpTest.csproj".
2>Target "PrepareProjectReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveProjectReferences" depends on it):
2>Done building target "PrepareProjectReferences" in project "ArxOne.FtpTest.csproj".
2>Target "ResolveProjectReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveReferences" depends on it):
2>Task "MSBuild"
2> Global Properties:
2> Configuration=Debug
2> Platform=AnyCPU
2> Removing Properties for project "..\ArxOne.Ftp\ArxOne.Ftp.csproj":
2> TargetFramework
2>Building with tools version "15.0".
2>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>Target "GetTargetPathWithTargetPlatformMoniker" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.Ftp\ArxOne.Ftp.csproj" (target "GetTargetPath" depends on it):
2>Done building target "GetTargetPathWithTargetPlatformMoniker" in project "ArxOne.Ftp.csproj".
2>Target "GetTargetPath" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.Ftp\ArxOne.Ftp.csproj" (entry point):
2>Done building target "GetTargetPath" in project "ArxOne.Ftp.csproj".
2>Done executing task "MSBuild".
2>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '$(VisualStudioVersion)' == '10.0' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' == 'true' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '' and ('true' == 'true' or 'true' != 'true') and '15.0' == '10.0' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '').
2>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' == 'true' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '' and 'true' != 'true' and 'true' == 'true' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '').
2>Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingProject)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' == 'true' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '' and 'false' == 'true' and '..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '').
2>Task "Warning" skipped, due to false condition; ('@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceNonexistent)' != '') was evaluated as ('..\ArxOne.Ftp\ArxOne.Ftp.csproj' != '' and '' != '').
2>Done building target "ResolveProjectReferences" in project "ArxOne.FtpTest.csproj".
2>Target "FindInvalidProjectReferences" skipped, due to false condition; ('$(FindInvalidProjectReferences)' == 'true') was evaluated as ('' == 'true').
2>Target "ResolveNativeReferences" skipped, due to false condition; ('@(NativeReference)'!='') was evaluated as (''!='').
2>Target "GetFrameworkPaths" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.NETFramework.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveAssemblyReferences" depends on it):
2>Done building target "GetFrameworkPaths" in project "ArxOne.FtpTest.csproj".
2>Target "GetWinFXPath" skipped, due to false condition; (('@(Page)' != '' or '@(ApplicationDefinition)' != '' or '@(Resource)' != '') and ('$(GetWinFXNativePath)' != '' or '$(GetWinFXWoWPath)' != '' )) was evaluated as (('' != '' or '' != '' or '' != '') and ('' != '' or '' != '' )).
2>Target "GetReferenceAssemblyPaths" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveAssemblyReferences" depends on it):
2>Task "GetReferenceAssemblyPaths" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and ('$(_TargetFrameworkDirectories)' == '' or '$(_FullFrameworkReferenceAssemblyPaths)' == '')) was evaluated as ('.NETFramework,Version=v4.0' != '' and ('C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '' or 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '')).
2>Done building target "GetReferenceAssemblyPaths" in project "ArxOne.FtpTest.csproj".
2>Target "GetFrameworkPaths" skipped. Previously built successfully.
2>Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
2>Target "AssignLinkMetadata" skipped, due to false condition; ( '$(SynthesizeLinkMetadata)' == 'true' ) was evaluated as ( '' == 'true' ).
2>Target "EnsureNuGetPackageBuildImports" in project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "PrepareForBuild" depends on it):
2>Task "Error" skipped, due to false condition; (!Exists('..\packages\Clarius.TransformOnBuild.1.21.0\build\Clarius.TransformOnBuild.targets')) was evaluated as (!Exists('..\packages\Clarius.TransformOnBuild.1.21.0\build\Clarius.TransformOnBuild.targets')).
2>Done building target "EnsureNuGetPackageBuildImports" in project "ArxOne.FtpTest.csproj".
2>Target "PrepareForBuild" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveAssemblyReferences" depends on it):
2>Task "FindAppConfigFile"
2>Done executing task "FindAppConfigFile".
2>Task "MakeDir"
2> Creating directory "bin\Debug\".
2>Done executing task "MakeDir".
2>Done building target "PrepareForBuild" in project "ArxOne.FtpTest.csproj".
2>Target "GetInstalledSDKLocations" skipped, due to false condition; ('@(SDKReference)' != '') was evaluated as ('' != '').
2>Target "ResolveSDKReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveAssemblyReferences" depends on it):
2>Task "ResolveSDKReference" skipped, due to false condition; ('@(SDKReference)'!='') was evaluated as (''!='').
2>Done building target "ResolveSDKReferences" in project "ArxOne.FtpTest.csproj".
2>Target "ResolveSDKReferences" skipped. Previously built successfully.
2>Target "ExpandSDKReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveAssemblyReferences" depends on it):
2>Task "GetSDKReferenceFiles" skipped, due to false condition; ('@(ResolvedSDKReference)'!='') was evaluated as (''!='').
2>Done building target "ExpandSDKReferences" in project "ArxOne.FtpTest.csproj".
2>Target "ResolveNuGetPackageAssets" skipped, due to false condition; ('$(ResolveNuGetPackages)' == 'true' and exists('$(ProjectLockFile)')) was evaluated as ('true' == 'true' and exists('obj\project.assets.json')).
2>Target "ImplicitlyExpandNETStandardFacades" skipped, due to false condition; ('$(ImplicitlyExpandNETStandardFacades)' == 'true') was evaluated as ('' == 'true').
2>Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
2>Target "ImplicitlyExpandNETStandardFacades" skipped, due to false condition; ('$(ImplicitlyExpandNETStandardFacades)' == 'true') was evaluated as ('' == 'true').
2>Target "_HandlePackageFileConflicts" in file "E:\Program Files\Visual Studio 2017\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveAssemblyReferences" depends on it):
2>Using "ResolvePackageFileConflicts" task from assembly "E:\Program Files\Visual Studio 2017\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\\tools\net46\Microsoft.NET.Build.Extensions.Tasks.dll".
2>Task "ResolvePackageFileConflicts"
2>Done executing task "ResolvePackageFileConflicts".
2>Done building target "_HandlePackageFileConflicts" in project "ArxOne.FtpTest.csproj".
2>Target "ResolveAssemblyReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveReferences" depends on it):
2>Task "ResolveAssemblyReference"
2>Done executing task "ResolveAssemblyReference".
2>Done building target "ResolveAssemblyReferences" in project "ArxOne.FtpTest.csproj".
2>Target "GenerateBindingRedirects" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true') was evaluated as ('' == 'true' and '' == 'true').
2>Target "GenerateBindingRedirectsUpdateAppConfig" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true' and Exists('$(_GenerateBindingRedirectsIntermediateAppConfig)')) was evaluated as ('' == 'true' and '' == 'true' and Exists('obj\Debug\ArxOne.FtpTest.dll.config')).
2>Target "ResolveComReferences" skipped, due to false condition; ('@(COMReference)'!='' or '@(COMFileReference)'!='') was evaluated as (''!='' or ''!='').
2>Target "AfterResolveReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (target "ResolveReferences" depends on it):
2>Done building target "AfterResolveReferences" in project "ArxOne.FtpTest.csproj".
2>Target "ImplicitlyExpandDesignTimeFacades" skipped, due to false condition; ('$(ImplicitlyExpandDesignTimeFacades)' == 'true') was evaluated as ('' == 'true').
2>Target "ResolveTestReferences" skipped, due to false condition; ('@(Shadow)'!='') was evaluated as (''!='').
2>Target "ResolveReferences" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (entry point):
2>Done building target "ResolveReferences" in project "ArxOne.FtpTest.csproj".
2>Target "_CopyFilesMarkedCopyLocal" in file "E:\Program Files\Visual Studio 2017\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets" from project "E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (entry point):
2>Task "Copy"
2> Copying file from "E:\coding\FTP\ArxOne.Ftp\bin\Debug\ArxOne.Ftp.dll" to "bin\Debug\ArxOne.Ftp.dll".
2> Copying file from "E:\Program Files\Visual Studio 2017\Common7\IDE\ReferenceAssemblies\v4.0\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll" to "bin\Debug\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll".
2>Done executing task "Copy".
2>Using "Touch" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
2>Task "Touch"
2> Creating "E:\coding\FTP\ArxOne.FtpTest\obj\Debug\ArxOne.FtpTest.csproj.CopyComplete" because "AlwaysCreate" was specified.
2>Done executing task "Touch".
2>Done building target "_CopyFilesMarkedCopyLocal" in project "ArxOne.FtpTest.csproj".
2>Done executing task "MSBuild".
2>Using "TransformOnBuildTask" task from assembly "C:\Users\naept_000\AppData\Local\Temp\abdd8be6-6134-4220-9270-682ebb7d9c33\Clarius.TransformOnBuild.MSBuild.Task.dll".
2>Task "TransformOnBuildTask"
2>TRANSFORMONBUILDTASK : error : Exception has been thrown by the target of an invocation.
2>
2>Done executing task "TransformOnBuildTask" -- FAILED.
2>Done building target "TransformOnBuild" in project "ArxOne.FtpTest.csproj" -- FAILED.
2>
2>Build FAILED.
2>
2>"E:\coding\FTP\ArxOne.FtpTest\ArxOne.FtpTest.csproj" (Rebuild target) (1) ->
2>(TransformOnBuild target) ->
2> TRANSFORMONBUILDTASK : error : Exception has been thrown by the target of an invocation.
2>
2> 0 Warning(s)
2> 1 Error(s)
2>
2>Time Elapsed 00:00:00.18
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
Any idea how to fix it? Is it something related to .NET version? I have 4.7.03056.
I removed it 😄 in netstandard
branch ☹️. I'll see if I can provide you information about how to do so.
I can compile the core project, but tests still fail to build because of transformation task. Logs attached. msbuild.log
The explanation to make a T4 transform before build without the Clarius.TransformOnBuild (so you can remove it) https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-in-a-build-process?view=vs-2017
I use plain MS transform (clarius package doesn't even exist). I have a fork here https://github.com/neptunao/FTP
Since I can't bring T4 templates to work on Linux, I have a question - do you need platform-independent tests based on .NET standard or only for .NET on Windows? There is no T4 implementation for .net core and therefore it's impossible to migrate tests on .NET standard. Also can we drop T4 somehow?
I'd like to see if I can make it work, but I didn't have much time these days.
Done! Works!
It would be nice if the library targets .NET Standard. I use it in .NET Core for Linux and want to be on the safe side :smile: Any plans for it?