DocX
DocX copied to clipboard
Visual Studio Project wont build
I have downloaded Zip file from Github and opened in Visual studio. Projects wont build. It shows build failed with 109 errors. I tried changing .Net version 4.0 to 4.5, downgraded to 3.5 none of them worked. Is this project dead ?
Hi,
The project is not dead. You have tried the Master branch ? I just try the download Zip of the master branch, opened it in Visual Studio 2015 and build it without any error. the .NEt version should be .Net 4.0 and up.
Thanks for your comments. I have just downloaded ZIP File and unzipped it and opened "Xceed.Words.NET.sln" in Visual Studio 2013 Professional. I get Visual Studio cannot start debugging because the debug target Examples.exe is missing. Please build the project and retry. When I build the solution I get 110 Errors. One of the errors I see is in Pragraph.cs Line 225. "System.Attribute is a type but used like a variable"
Hi,
This shouldn't happen. There is not really 110 errors and the one you are pointing on line 225 of paragraph is not really an error. Looks like a dll not reached or the exe in a wrong folder.
Make sure the "Examples" project is the startup project. You may try this link : https://social.msdn.microsoft.com/Forums/vstudio/en-US/1a89d2df-0c57-4bb2-8c1a-b619e6cbb065/cannot-start-debugging-because-the-debug-target-is-missing?forum=vsdebug
Thanks again for responding so quickly. I have checked output patch it is trying to save in Debug Folder when debug mode and in Release folder when in Release mode. I did notice this error "\DocX-master\DocX-master\Xceed.Words.NET\bin\Release\Xceed.Words.NET.dll' could not be found" When I try to build Xceed.Words.NET solution it won't build. I tried on Visual Web Developer 2010. Same issue there. Am I missing any libraries ? I can confirm I'm running Visual Studio as Admin and I have read/write permissions over Debug and Release Folders. Really strange.
Hi, It looks like the Xceed.Words.NET.dll can't be build. You are not missing any libraries, since everything is included in the zip package and....everyone can compile it. You can always try to use the compiled dlls : https://github.com/xceedsoftware/DocX/releases and run your app with it. You won't be able to modify the code, but you will be able to use the public methods/properties.
Sounds good. Will copy the Dlls and use it instead. Thanks Man. Appreciate your help. Love the DocX library by the way. Make things way easier now.
I too have had the syntax problem. The errors appear to revolve syntax like body?.Element( XName.Get( "sectPr", DocX.w.NamespaceName ) ); The ? doesn't appear to be recognized. Is there an option that I don't have set in VS2013? What am I missing?
I was able to compile the DLL with VS2017.
Hi. As described in Microsoft Docs Tutorial: "Open a project from a repo" [https://docs.microsoft.com/en-us/visualstudio/get-started/tutorial-open-project-from-repo-visual-studio-2019?view=vs-2019&tabs=vs168later], GitHub offers repositories from which one can build an entire solution. I had hoped to find one for XceedSoftware / Docx Samples, but I exhausted my searching skills. All I could find were (approximately) solution tree structured files, including AssemblyInfo and Resource files. Building a solution from them is above my pay grade :-). Mastering just the Samples themselves is hard enough. Might I have overlooked some nice DocX repository? Please help.
Dave Owens Feeding Hills, Massachusetts