I'm using vs2010, ice source code V3.7.0,I compiled cpp source code to win32 and x64 well in vs2010.
But the csharp project could not even open to compile. vs2010+.net framework4.0
and I tried vs2017+.net framework4.6.1,it still can not compile.
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
i've tried to follow the msbuild under commandline , failed too .
ToT.
help me please!!!
and thank you for your kindness help!
0
xdmLa Coruña, SpainAdministrators, ZeroC StaffJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice DeveloperZeroC Staff
Hi,
You should try with v3.7.1 that is last release, if this fail can you post the complete build output for C# with Visual Studio 2017, without seeing the error we cannot help you.
0
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
@xdm, I download the branch of ice 3.7 code,I open the csharp project file named "ice.net45.sln" in vs2017,the result picture is below.
this is the solution explorer view and the chinese word means "Need to migrate"
0
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
i used vs2017 community version,do I need to install all c# components to compile this sln?
is there a way to compile the sln using vs2010?
please give me some advise.@xdm,thanks.
0
xdmLa Coruña, SpainAdministrators, ZeroC StaffJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice DeveloperZeroC Staff
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
I nerver opened the project correctly on 3.7.1 version.
but at last I edited the csproj file and comment the
tag text line and
tag text line.
Then reload the project and opend well.
but the build comes out can not find the IceHome,
I installed nuget zeroc.Ice.net .
the error out comes like :
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ........\msbuild\packages\zeroc.icebuilder.msbuild.5.0.4\build\zeroc.icebuilder.msbuild.props. ice \ice-3.7\csharp\src\Ice\msbuild\net45\ice.csproj 500
0
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
edited May 2018
and there is trully no that file either.,thank you for help ! @xdm
I noted that @pepone add the similar issue to bug.
0
xdmLa Coruña, SpainAdministrators, ZeroC StaffJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice DeveloperZeroC Staff
As the error point out you need to use "NuGet package Restore" and this will download the missing packages, that is unrelated to the bug
It will be simpler if you follow the README instructions
msbuild msbuild\ice.proj
Also you don't need to edit the project files, if you start making modifications to the project files we will not be able to help. Please revert these modifications and rebuild following the documented process if that doesn't work post the build error.
Cheers,
Jose
0
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
thanks a lot, @xdm!!!! the command goes well after i installed .net core V2.0 SDK, but how could I compile for .net framework4.6.1?
and how could I compile the ice.dll to x86 debug/release version or x64 debug/release version?
0
xdmLa Coruña, SpainAdministrators, ZeroC StaffJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice DeveloperZeroC Staff
.NET Framework binaries should be placed in lib\net45 those are compatible with .NET 4.6.1
For a release build set the MSBuild configuration property to Release for example
msbuild msbuild\ice.proj /p:Configuration=Release
All the binaries are included in our .NET NuGet package zeroc.ice.net.
0
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
edited May 2018
I add reference ice.dll into a winform project,and there is Ice namespace I slice2cs an ice file, added it to the project. the namespace could not be resolved.
0
xdmLa Coruña, SpainAdministrators, ZeroC StaffJose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice DeveloperZeroC Staff
There is nothing special to do, you should review our demos and see how they work.
senses1Memberboyue TanOrganization: PersonalProject: Interface of Server✭
thanks again @xdm!!!!!
I solved the problem. it is because that the ice.dll is compiled with .net core 2.0 SDK, so I rewrite my demo csharp project in vs2017,and everything is ok.(my original demo csharp project is written under vs2010,^_^)!!
Comments
i've tried to follow the msbuild under commandline , failed too .
ToT.
help me please!!!
and thank you for your kindness help!
Hi,
You should try with v3.7.1 that is last release, if this fail can you post the complete build output for C# with Visual Studio 2017, without seeing the error we cannot help you.
@xdm, I download the branch of ice 3.7 code,I open the csharp project file named "ice.net45.sln" in vs2017,the result picture is below.
this is the solution explorer view and the chinese word means "Need to migrate"
i used vs2017 community version,do I need to install all c# components to compile this sln?
is there a way to compile the sln using vs2010?
please give me some advise.@xdm,thanks.
Try installing the Ice Builder for Visual Studio extension https://marketplace.visualstudio.com/items?itemName=ZeroCInc.IceBuilder in vs 2017
I nerver opened the project correctly on 3.7.1 version.
\ice-3.7\csharp\src\Ice\msbuild\net45\ice.csproj 500
but at last I edited the csproj file and comment the
tag text line and
tag text line.
Then reload the project and opend well.
but the build comes out can not find the IceHome,
I installed nuget zeroc.Ice.net .
the error out comes like :
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ........\msbuild\packages\zeroc.icebuilder.msbuild.5.0.4\build\zeroc.icebuilder.msbuild.props. ice
and there is trully no that file either.,thank you for help ! @xdm
I noted that @pepone add the similar issue to bug.
As the error point out you need to use "NuGet package Restore" and this will download the missing packages, that is unrelated to the bug
It will be simpler if you follow the README instructions
Also you don't need to edit the project files, if you start making modifications to the project files we will not be able to help. Please revert these modifications and rebuild following the documented process if that doesn't work post the build error.
Cheers,
Jose
thanks a lot, @xdm!!!! the command goes well after i installed .net core V2.0 SDK, but how could I compile for .net framework4.6.1?
and how could I compile the ice.dll to x86 debug/release version or x64 debug/release version?
.NET Framework binaries should be placed in lib\net45 those are compatible with .NET 4.6.1
For a release build set the MSBuild configuration property to Release for example
All the binaries are included in our .NET NuGet package zeroc.ice.net.
I add reference ice.dll into a winform project,and there is Ice namespace I slice2cs an ice file, added it to the project. the namespace could not be resolved.
There is nothing special to do, you should review our demos and see how they work.
I also recommend you review Writing an Ice Application with C-Sharp documentation
thanks again @xdm!!!!!
I solved the problem. it is because that the ice.dll is compiled with .net core 2.0 SDK, so I rewrite my demo csharp project in vs2017,and everything is ok.(my original demo csharp project is written under vs2010,^_^)!!