saritasa-nest / saritasa-dotnet-tools

Development Tools For Company'S .NET Projects.
BSD 2-Clause "Simplified" License
27 stars 13 forks source link

Convert .xproj and project.json to .csproj #29

Closed dermeister0 closed 6 years ago

dermeister0 commented 7 years ago

In change-docker-context branch:

Invalid restore input. UAP projects must contain exactly one target framework. Input files: C:\Work\SaritasaTools\src\Saritasa.Tools.Common\Saritasa.Tools.Common.csproj, C:\Work\SaritasaTools\src\Saritasa.Tools.Common\Saritasa.Tools.Common.project.json.
Error: 5/11/2017 10:24:35 PM:
 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Nuget restore failed.:43 char:9
Invalid restore input. UAP projects must contain exactly one target framework. Input files: C:\Work\SaritasaTools\src\Saritasa.Tools.Common\Saritasa.Tools.Common.csproj, C:\Work\SaritasaTools\src\Saritasa.Tools.Common\project.json.
Error: 5/11/2017 10:37:07 PM:
 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [<<==>>] Exception: Nuget restore failed.:43 char:9
krasninja commented 7 years ago

It has been already converted, does it work now?

dermeister0 commented 7 years ago

Build fails.

PS C:\Work\SaritasaTools> psake build-saritasatools
       "C:\Work\SaritasaTools\Saritasa.Tools.sln" (Build target) (1) ->
       "C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj" (default target) (9) ->
       "C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj" (Build target) (9:2) ->
       (CoreCompile target) ->
         Properties\AssemblyInfo.cs(2,12): error CS0246: The type or namespace name 'AssemblyVersionAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(2,12): error CS0246: The type or namespace name 'AssemblyVersion' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(3,12): error CS0246: The type or namespace name 'AssemblyInformationalVersionAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(3,12): error CS0246: The type or namespace name 'AssemblyInformationalVersion' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(4,12): error CS0246: The type or namespace name 'AssemblyFileVersionAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(4,12): error CS0246: The type or namespace name 'AssemblyFileVersion' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]

       "C:\Work\SaritasaTools\Saritasa.Tools.sln" (Build target) (1) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Tests\Saritasa.Tools.Tests.csproj" (default target) (13) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Tests\Saritasa.Tools.Tests.csproj" (Build target) (13:2) ->
       "C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj" (default target) (9:4) ->
         Properties\AssemblyInfo.cs(2,12): error CS0246: The type or namespace name 'AssemblyVersionAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(2,12): error CS0246: The type or namespace name 'AssemblyVersion' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(3,12): error CS0246: The type or namespace name 'AssemblyInformationalVersionAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(3,12): error CS0246: The type or namespace name 'AssemblyInformationalVersion' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(4,12): error CS0246: The type or namespace name 'AssemblyFileVersionAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]
         Properties\AssemblyInfo.cs(4,12): error CS0246: The type or namespace name 'AssemblyFileVersion' could not be found (are you missing a using directive or an assembly reference?) [C:\Work\SaritasaTools\src\Saritasa.Tools.Misc\Saritasa.Tools.Misc.csproj]

       "C:\Work\SaritasaTools\Saritasa.Tools.sln" (Build target) (1) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Tests\Saritasa.Tools.Tests.csproj" (default target) (13) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Tests\Saritasa.Tools.Tests.csproj" (Build target) (13:2) ->
       (GenerateBuildDependencyFile target) ->
         C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets(92,5): error : Cannot find project info for 'C:\Work\SaritasaTools\src\Saritasa.Tools.Domain\Saritasa.Tools.Domain.csproj'. This can indicate a missing project reference. [C:\Work\SaritasaTools\test\Saritasa.Tools.Tests\Saritasa
       .Tools.Tests.csproj]

       "C:\Work\SaritasaTools\Saritasa.Tools.sln" (Build target) (1) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Common.Tests\Saritasa.Tools.Common.Tests.csproj" (default target) (11) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Common.Tests\Saritasa.Tools.Common.Tests.csproj" (Build target) (11:2) ->
       (CoreCompile target) ->
         obj\Release\net452\Saritasa.Tools.Common.Tests.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyInformationalVersionAttribute' attribute [C:\Work\SaritasaTools\test\Saritasa.Tools.Common.Tests\Saritasa.Tools.Common.Tests.csproj]

       "C:\Work\SaritasaTools\Saritasa.Tools.sln" (Build target) (1) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Messages.Tests\Saritasa.Tools.Messages.Tests.csproj" (default target) (12) ->
       "C:\Work\SaritasaTools\test\Saritasa.Tools.Messages.Tests\Saritasa.Tools.Messages.Tests.csproj" (Build target) (12:2) ->
         obj\Release\netcoreapp1.1\Saritasa.Tools.Messages.Tests.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyInformationalVersionAttribute' attribute [C:\Work\SaritasaTools\test\Saritasa.Tools.Messages.Tests\Saritasa.Tools.Messages.Tests.csproj]

    8 Warning(s)
    15 Error(s)
krasninja commented 6 years ago

Now psake build-saritasatools works fine.