using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using ExcelDna.Integration;public static class MyFunctions{[ExcelFunction(Description = "My first .NET function")]public static string HelloDna(string name){return "Hello " + name;}}
<?xml version="1.0" encoding="utf-8" standalone="no"?><Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "><RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess><RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool><ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">D:\_CODE\Cshrp\testExcelDna2\testExcelDna2\obj\project.assets.json</ProjectAssetsFile><NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot><NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">D:\Users\s.creighton\.nuget\packages\</NuGetPackageFolders><NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle><NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.3.0</NuGetToolVersion></PropertyGroup><PropertyGroup><MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects></PropertyGroup></Project>
Hi Sean,
It seems like the Powershell script (called install.ps1) that is part of the NuGet package has not run – that’s how these modification to the project are made. Maybe this is due to some security setting on your computer that prevents the NuGet package PowerShell script from running in your context.
I suggest you uninstall the package, then re-install and look at the output window – there might be some clue why the NuGet package manager can’t run the script.
-Govert
--
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 post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to exc...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+unsubscribe@googlegroups.com.