Just upgraded OctoPack to 2.0 and while it works fine without a .nuspec as soon as I use my AppScheduler.nuspec that worked in octopack 1.0.111 I have the following problem…
“C:…\AppScheduler.sln” (Build target) (1) ->
“C:…\AppScheduler.csproj” (default target) (2) ->
(OctoPack target) ->
MSBUILD : OctoPack error OCT-1676060969: The NuSpec file does not contain a XML element. The NuSpec file appears to be
invalid. [C:…\AppScheduler.csproj]
MSBUILD : OctoPack error OCT-1676060969: System.Exception: The NuSpec file does not contain a XML element. The NuSpec f
ile appears to be invalid.\r [C:…\AppScheduler.csproj]
MSBUILD : OctoPack error OCT-1676060969: at OctoPack.Tasks.CreateOctoPackPackage.AddFiles(XContainer nuSpec, IEnumerable`1 sourc
eFiles, String sourceBaseDirectory, String targetDirectory) in c:\w\e54fb60b275043b3\source\OctoPack.Tasks\CreateOctoPackPackage.cs
:line 254\r [C:…\AppScheduler.csproj]
MSBUILD : OctoPack error OCT-1676060969: at OctoPack.Tasks.CreateOctoPackPackage.Execute() in c:\w\e54fb60b275043b3\source\OctoP
ack.Tasks\CreateOctoPackPackage.cs:line 136 [C:…\AppScheduler.csproj]
[08:45:04][MSBuild] Syntell.PayCity.Database.Migrations\Syntell.PayCity.Database.Migrations.csproj: Build target: Rebuild
[08:45:04][Syntell.PayCity.Database.Migrations\Syntell.PayCity.Database.Migrations.csproj] OctoPack
[08:45:04][OctoPack] CreateOctoPackPackage
[08:45:04][CreateOctoPackPackage] error OCT-1676060969: The NuSpec file does not contain a XML element. The NuSpec file appears to be invalid.
[08:45:04]
[CreateOctoPackPackage] error OCT-1676060969: System.Exception: The NuSpec file does not contain a XML element. The NuSpec file appears to be invalid.
at OctoPack.Tasks.CreateOctoPackPackage.AddFiles(XContainer nuSpec, IEnumerable`1 sourceFiles, String sourceBaseDirectory, String targetDirectory) in c:\w\e54fb60b275043b3\source\OctoPack.Tasks\CreateOctoPackPackage.cs:line 256
at OctoPack.Tasks.CreateOctoPackPackage.Execute() in c:\w\e54fb60b275043b3\source\OctoPack.Tasks\CreateOctoPackPackage.cs:line 138
[08:45:04][Syntell.PayCity.Database.Migrations\Syntell.PayCity.Database.Migrations.csproj] Project Syntell.PayCity.Database.Migrations\Syntell.PayCity.Database.Migrations.csproj failed.
I have exactly the same problem. I’m using basically the same .nuspec for two different projects (the title and and id differs), but there is one change between the projects. One of the projects is targeting net35 (this one doesn’t work) and the other one is targeting net40.