12-06-2022, 11:27 PM
Hi,
i try to learn how to use LibreAutomate and i'm stuck for a single test ...
and i have this error message :
Script1.cs(2,27): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Script1.cs(1,17): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
i have try to insert the lib in properties but i m stuck can you help me ?
also, i m not a Visual Studio user and with your install the nuget file config was not set ...
you should probably add an initial file if %AppData%\NuGet\NuGet.config does not exist with nuget.org into .
i try to learn how to use LibreAutomate and i'm stuck for a single test ...
/*/ nuget -\Microsoft.Office.Interop.Outlook; /*/
using Microsoft.Office.Interop.Outlook;
using Outlook = Microsoft.Office.Interop.Outlook;
Outlook.Application Application = new Outlook.Application();
Outlook.Accounts accounts = Application.Session.Accounts;
foreach (Outlook.Account account in accounts)
{
Console.WriteLine(account.DisplayName);
}
return;
and i have this error message :
Script1.cs(2,27): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Script1.cs(1,17): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
i have try to insert the lib in properties but i m stuck can you help me ?
also, i m not a Visual Studio user and with your install the nuget file config was not set ...
you should probably add an initial file if %AppData%\NuGet\NuGet.config does not exist with nuget.org into .