Archived
could not compile ice source code in csharp directory!
Comments
-
i've tried to follow the msbuild under commandline , failed too .
ToT.
help me please!!!
and thank you for your kindness help!0 -
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 -
Try installing the Ice Builder for Visual Studio extension https://marketplace.visualstudio.com/items?itemName=ZeroCInc.IceBuilder in vs 2017
0 -
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 -
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,
Jose0 -
.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 -
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 -
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
0