Excel-DNA / Samples

Various sample projects and snippets related to Excel-DNA
MIT License
124 stars 80 forks source link

Example builds using old version of Excel DNA #7

Open Zupnik opened 6 years ago

Zupnik commented 6 years ago

Your Logging example works fine for me out of the box, but when I use NuGet to get the latest version of Excel DNA (0.34.6) and use the command 'Update-Package -reinstall', all logs go through the Diagnostic Display regardless of what I do.

image

The build event code ends up being replaced with: `

` See: https://github.com/Excel-DNA/Samples/blob/f5a9e7a07fd260aad57d4fc86c69acdb952c8ed3/Logging/Logging.csproj#L74
govert commented 6 years ago

@Zupnik Not sure about the message you see there - it seems to be an unrelated NuGet issue. For the logging you should check that the .xll.config file is getting copied to the output directory. I believe the new build implementation deals with .config files a bit differently. I remember having to set an app.config file to either "Build Action: None" or "Build Action: Content" for it to be processed to the output directory. But in the sample the .config file have the full name, so not sure it applies...