creating HTML Help content in C:\VS\Source\Repos\MyProj\MyProj_ExcelDNA\bin\Debug\HelpContent
5> ExcludeHidden: False, SkipCompile: False, Async: False
5>
5> using local template : ProjectFileTemplate.cshtml
5>
5> Unhandled Exception: System.Reflection.AmbiguousMatchException: Multiple custom attributes of the same type found.
5> at System.Attribute.GetCustomAttribute(MemberInfo element, Type attributeType, Boolean inherit)
5> at ExcelDnaDoc.Utility.ModelHelper.CreateFunctionModel(MethodInfo method, String defaultCategory)
5> at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
5> at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
5> at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
5> at System.Linq.Lookup`2.Create[TSource](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
5> at System.Linq.GroupedEnumerable`3.GetEnumerator()
5> at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
5> at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
5> at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
5> at ExcelDna.Documentation.Models.AddInModel.<get_Functions>d__13.MoveNext()
5> at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
5> at CompiledRazorTemplates.Dynamic.dbadfeecadeade.Execute()
5> at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
5> at RazorEngine.Razor.Parse[T](String razorTemplate, T model)
5> at ExcelDnaDoc.Templates.ViewBase`1.Publish()
5> at ExcelDnaDoc.HtmlHelp.Create(String dnaPath, String helpSubfolder, Boolean excludeHidden, Boolean skipCompile, Boolean runAsync)
5> at ExcelDnaDoc.Program.Main(String[] args)
5>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(5258,5): error MSB3073: The command ""C:\VS\Source\Repos\packages\ExcelDnaDoc.1.1.0-beta2\tools\ExcelDnaDoc.exe" "C:\VS\Source\Repos\MyProj\MyProj_ExcelDNA\bin\Debug\MyProj_ExcelDNA-AddIn.dna" /Y" exited with code -532462766.
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/1b35daea-18b0-4b1f-917d-175a29266e38o%40googlegroups.com.
Hi Johan,
I did a quick test and all seemed OK.
The function did make it into the .chm file and everything hooked up correctly.
My build output had this part at the bottom, related to the ExcelDnaDoc – maybe you can compare:
1>PostBuildEvent:
1> "C:\Test\TestDnaDocs\packages\ExcelDnaDoc.1.1.0-beta2\tools\ExcelDnaDoc.exe" "C:\Test\TestDnaDocs\bin\Debug\TestDnaDocs-AddIn.dna" /Y
1> Started: 2020/07/08 17:34:50
1> creating HTML Help content in C:\Test\TestDnaDocs\bin\Debug\HelpContent
1> ExcludeHidden: False, SkipCompile: False, Async: False
1>
1> using local template : ProjectFileTemplate.cshtml
1> using local template : TableOfContentsTemplate.cshtml
1> using local template : MethodListTemplate.cshtml
1> using local template : CategoryTemplate.cshtml
1> using local template : FunctionTemplate.cshtml
1> using local template : helpstyle.css
1>
1> creating chm file
1> Microsoft HTML Help Compiler 4.74.8702
1>
1>
1>
1> Compiling c:\Test\TestDnaDocs\bin\Debug\HelpContent\TestDnaDocs-AddIn.chm
1>
1>
1>
1>
1>
1> Compile time: 0 minutes, 0 seconds
1>
1> 3 Topics
1>
1> 8 Local links
1>
1> 0 Internet links
1>
1> 0 Graphics
1>
1>
1>
1>
1>
1> Created c:\Test\TestDnaDocs\bin\Debug\HelpContent\TestDnaDocs-AddIn.chm, 12,198 bytes
1>
1> Compression increased file by 4,338 bytes.
1>
1> finished creating HTML Help File
1>
1> C:\Test\TestDnaDocs\bin\Debug\HelpContent\TestDnaDocs-AddIn.chm was moved to C:\Test\TestDnaDocs\bin\Debug\TestDnaDocs-AddIn.chm.
1>
1> Finished: 2020/07/08 17:34:51
1> Successful
1>
-Govert
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/CAOnxo98gK-Czm7q7L7uK5MMaqp22L4o1GA_V8VVXwCxRuYWt-Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/002d01d6553d%246f25c2c0%244d714840%24%40icon.co.za.