Downloaded Facebook C# SDK 5.4.1 from here.
I've been through the CS-WinForms solution which works fine. I'm now trying to open the CS-Canvas-AspNetWebForms-JsSdk and CS-Canvas-AspNetWebForms-WithoutJsSdk solutions but I get the following error in VS 2010:
D:\VSProjects\...\CS-Canvas-AspNetWebForms-WithoutJsSdk.csproj : error :
The Web Application Project CS-Canvas-AspNetWebForms-WithoutJsSdk is configured
to use IIS. To access local IIS Web sites, you must install the following IIS
components:
IIS 6 Metabase and IIS 6 Configuration Compatibility
ASP.NET
In addition, you must run Visual Studio in the context of an administrator account.
I'm running on Windows 7 (64 bit) so I really don't want to install IIS 6. Can I just run this solution using the built-in VS Cassini web server that I use for everything else?
UPDATE:
Apparently I need to edit the .csproj file by hand. The contents are shown below. Can anyone tell me which changes I need to make?
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7A74691E-66DF-4DAA-B9A7-D5428E13B5A9}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CS_Canvas_AspNetWebForms_JsSdk</RootNamespace>
<AssemblyName>CS-Canvas-AspNetWebForms-JsSdk</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<UseIISExpress>true</UseIISExpress>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Facebook">
<HintPath>..\..\Bin\Release\net40-client\Facebook.dll</HintPath>
</Reference>
<Reference Include="Facebook.Web">
<HintPath>..\..\Bin\Release\net40\Facebook.Web.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Xml" />
<Reference Include="System.Configuration" />
<Reference Include="System.Web.Services" />
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
<Content Include="Default.aspx" />
<Content Include="Facebook\Default.aspx" />
<Content Include="Facebook\FacebookLoginControl.ascx" />
<Content Include="Scripts\jquery-1.6.2-vsdoc.js" />
<Content Include="Scripts\jquery-1.6.2.js" />
<Content Include="Scripts\jquery-1.6.2.min.js" />
<Content Include="Web.config" />
<Content Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
<Content Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Include="Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="Facebook\Default.aspx.cs">
<DependentUpon>Default.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Facebook\Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="Facebook\FacebookLoginControl.ascx.cs">
<DependentUpon>FacebookLoginControl.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Facebook\FacebookLoginControl.ascx.designer.cs">
<DependentUpon>FacebookLoginControl.ascx</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>1220</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:1220/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
Right-click on the project and change the webserver settings to use cassini. If you cannot get the project to load at all, then you will need to hand edit the .csproj file and change the web server settings by hand.
Related
In my .NET MAUI app, I changed the icons used by the app from font based icons to PNG files and I store these images in Resources > Images folder.
I was able to successfully create a package and upload it to TestFlight but when I try to open the app, it crashes immediately. In crash logs, I see that the cause of crash is that the app was unable to load the PNG file I use for the Flyout i.e. the hamburger menu icon.
The other key change in the app is that it's now a .NET 7 based app.
I thought the publish process would add the PNG images used by the app to the ipa package if I placed them in Resources > Images folder.
Any idea what could be the issue here?
Here are screenshots of exception logs
And here's the MyApp.csproj file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>MyApp</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Display name -->
<ApplicationTitle>MyApp</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.mycompany.myapp</ApplicationId>
<ApplicationIdGuid>0636ab8b-e4f3-4c11-83e5-b809594a10b5</ApplicationIdGuid>
<!-- Versions -->
<ApplicationDisplayVersion>1.2</ApplicationDisplayVersion>
<ApplicationVersion>68</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net7.0-ios'">
<CodesignKey>Apple Development: Samuel Uresin (3YQ4LF4U5J)</CodesignKey>
<CodesignProvision>VS: llc.iquest.ingrid.connect Development</CodesignProvision>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.png" />
<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\Splash\splash.png" Color="#262627" />
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<None Remove="Resources\Images\about_graphite.png" />
<None Remove="Resources\Images\badge_graphite.png" />
<None Remove="Resources\Images\biz_profile_graphite.png" />
<None Remove="Resources\Images\coupons_graphite.png" />
<None Remove="Resources\Images\customers_graphite.png" />
<None Remove="Resources\Images\dashboard_graphite.png" />
<None Remove="Resources\Images\feed_graphite.png" />
<None Remove="Resources\Images\hamburger_manu_graphite.png" />
<None Remove="Resources\Images\intercom_graphite.png" />
<None Remove="Resources\Images\plus_graphite.png" />
<None Remove="Resources\Images\power_graphite.png" />
<None Remove="Resources\Images\qr_scan_graphite.png" />
<None Remove="Resources\Images\qr_scan_large_graphite.png" />
<None Remove="Resources\Images\search_graphite.png" />
<None Remove="Resources\Images\settings_graphite.png" />
<None Remove="Resources\Images\shop_graphite.png" />
<None Remove="Resources\Images\single_user_graphite.png" />
<None Remove="Resources\Images\subscriptions_graphite.png" />
<None Remove="Resources\Images\user_profile_graphite.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Storage.Blobs" Version="12.14.1" />
<PackageReference Include="CommunityToolkit.Maui" Version="3.0.0" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="Ingrid.Aurora" Version="1.5.1" />
<PackageReference Include="Ingrid.Core" Version="1.5.1" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
<PackageReference Include="MonkeyCache.FileStore" Version="1.6.3" />
<PackageReference Include="Plugin.InAppBilling" Version="6.7.0" />
<PackageReference Include="Plugin.Maui.Audio" Version="0.1.0-preview1" />
<PackageReference Include="Sentry.Maui" Version="3.23.1-preview.3" />
<PackageReference Include="Syncfusion.Maui.Barcode" Version="20.3.56" />
<PackageReference Include="ZXing.Net.Maui.Controls" Version="0.2.0-preview.2" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
<PackageReference Include="SQLitePCLRaw.core" Version="2.1.0" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.0" />
<PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.0" />
<PackageReference Include="SQLitePCLRaw.provider.sqlite3" Version="2.1.0" />
</ItemGroup>
</Project>
I was setting the Flyout icon in Styles.xaml and this was the issue -- see below.
<Style TargetType="Shell" ApplyToDerivedTypes="True">
<Setter Property="Shell.FlyoutIcon" Value="mymenuicon.png" />
</Style>
There's probably a way to set it in Styles.xaml and I'd appreciate it if someone can show me how to do that in the comments.
The fix for my problem was simply setting it in AppShell as follows:
<Shell
x:Class="MyApp.AppShell"
FlyoutIcon="mymenuicon.png">
...
</Shell>
When I publish our blazor server app via Visual Studio to a local folder all is fine. We get a single wwwroot folder with all the css etc in it. However when deployed via Blazor to the server we get the wwwroot folder inside another wwwroot folder for some reason. Does anyone know what could be the issue?
I found the problem and it was a little curious.
Basically I had the following in the csproj file for the client project.
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Content Remove="wwwroot\css\bootstrap-select.css" />
<Content Remove="wwwroot\css\bootstrap-select.min.css" />
<Content Remove="wwwroot\css\bootstrap-theme.css" />
<Content Remove="wwwroot\css\bootstrap-theme.min.css" />
<Content Remove="wwwroot\css\bootstrap.css" />
<Content Remove="wwwroot\css\bootstrap.min.css" />
<Content Remove="wwwroot\css\cust-bootstrap.css" />
<Content Remove="wwwroot\css\cust.css" />
<Content Remove="wwwroot\css\navbar.css" />
<Content Remove="wwwroot\css\site.css" />
</ItemGroup>
<ItemGroup>
<None Include="wwwroot\css\bootstrap-select.css" />
<None Include="wwwroot\css\bootstrap-select.min.css" />
<None Include="wwwroot\css\bootstrap-theme.css" />
<None Include="wwwroot\css\bootstrap-theme.min.css" />
<None Include="wwwroot\css\bootstrap.css" />
<None Include="wwwroot\css\bootstrap.min.css" />
<None Include="wwwroot\css\custbootstrap.css" />
<None Include="wwwroot\css\cust.css" />
<None Include="wwwroot\css\navbar.css" />
<None Include="wwwroot\css\site.css" />
<None Include="wwwroot\img\navbarlogo.png" />
<None Include="wwwroot\js\bootstrap-select.min.js" />
<None Include="wwwroot\js\bootstrap.js" />
<None Include="wwwroot\js\bootstrap.min.js" />
<None Include="wwwroot\js\references.js" />
<None Include="wwwroot\js\site.js" />
<None Include="wwwroot\static\master.html" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Blazored.LocalStorage" Version="4.1.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.1" PrivateAssets="all" />
<PackageReference Include="PSC.Blazor.Components.Tabs" Version="1.0.6" />
I Noticed that one of my other Blazor projects did not have these in. I removed the wwwroot entries from this file and it fixed the double folder issue.
I have no idea how they got into the project file in the first place...
I have a build pipeline in azure devops but getting the error below.
The type or namespace name 'Azure' could not be found (are you missing
a using directive or an assembly reference?
This error appears during my MSbuild task, the previous Nuget restore task works fine.
This is my project file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{01511C7D-0BB5-4EF9-9B86-FE2B7B1E73DB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GraphSDK</RootNamespace>
<AssemblyName>GraphSDK</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.IdentityModel" />
<Reference Include="System.Numerics" />
<Reference Include="System.Security" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="GraphClient.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Samples\Assignment.cs" />
<Compile Include="Samples\Submission.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Identity">
<Version>1.5.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Graph">
<Version>4.7.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
And this is my MSbuild task, any idea what is the reason of the error or probably something related to my project?
BTW, it builds fine locally in VS2019.
How Did I solve it?
It seems there is a difference on how your project takes the nuget packages.
I had added them from Solution level, I mean.
Right click on the solution.
Manage Nuget Packages for Solution...
What worked was to remove the Nuget packages and add back but from Project level (I have 3 projects in my solution).
Right click on the project.
Manage Nuget Packages..
And install back all your packages (project by project).
Not sure why but it worked!!
I upgraded my ASP.NET Core, EF Core class library solution to Visual Studio 2017.
However when I want to run migrations commands like Add-Migration I get the following warning.
Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework\Update-Database' for Entity Framework 6.
However I don't have EF 6 installed
My csproj
...
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="1.1.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.3.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.1" />
<PackageReference Include="System.Collections" Version="4.3.0" />
<PackageReference Include="System.Linq" Version="4.3.0" />
<PackageReference Include="System.Runtime" Version="4.3.0" />
<PackageReference Include="System.Threading" Version="4.3.0" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' ">
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Migrations\" />
</ItemGroup>
</Project>
This can happen if you previously had an EF6 project open in VS. To unload EF6, you can use the following command.
Remove-Module EntityFramework
I have Powershell Tools project in Visual Studio 2015 defined like this:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>6CAFC0C6-A428-4d30-A9F9-700E829FEA51</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>MyApplication</RootNamespace>
<AssemblyName>MyApplication</AssemblyName>
<Name>PS.TEST</Name>
<DebugArguments>
</DebugArguments>
<Author />
<CompanyName />
<Copyright />
<Description />
<Version>1.0.0.1</Version>
<Guid>29a8500a-c449-43f5-b9ba-610546db8cc2</Guid>
<FormatsToProcess />
<FunctionsToProcess />
<ModuleList>
</ModuleList>
<ModuleToProcess />
<NestedModules />
<TypesToProcess />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="PS-TEST.psd1" />
<Compile Include="PS-TEST.psm1" />
<Compile Include="Tools\Release.ps1" />
</ItemGroup>
<ItemGroup>
<Folder Include="Files\" />
<Folder Include="Tools\" />
<Folder Include="Public\" />
<Folder Include="Private\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="CoreCompile" />
<Target Name="Build">
<Exec Command="Powershell.exe Tools\Release.ps1 $(version)" />
</Target>
</Project>
When I build whole solution "Build" task Exec command is not performed. Why?
When I build this with msbuild console application it succeeds and performs "Build" task Exec command, however "Build command" in Visual Studio 2015 Community is not displayed for this project when I right click the project node on solution explorer. How to enable this?
I've already added node <Target Name="CoreCompile" /> but no effect - the command is still not shown in the UI. Is there something still missing in the XML?
The PowerShell Tools extension does not define a Visual Studio command to "build" a PowerShell module project. If you right click the project in the solution explorer you'll notice there is no build option.
However, there is an option beneath the Build menu. I assume that this is just standard chrome of Visual Studio, not the doing of the extension provider. Because clicking this is essentially a no-op.
Currently, msbuild is the tool to accomplish what you need.
You can file an issue here: https://github.com/adamdriscoll/poshtools/issues