(MVC) MVC (2018)

CefSharp.Winforms.ChromiumWebBrowser minimal example on VB.NET (with cookies collector and script executor).

Project file, configured to X64.

   1:  <?xml version="1.0" encoding="utf-8"?>
   2:  <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   3:    <Import Project="..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.props" Condition="Exists('..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.props')" />
   4:    <Import Project="..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.props" Condition="Exists('..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.props')" />
   5:    <Import Project="..\packages\cef.redist.x86.3.3578.1870\build\cef.redist.x86.props" Condition="Exists('..\packages\cef.redist.x86.3.3578.1870\build\cef.redist.x86.props')" />
   6:    <Import Project="..\packages\cef.redist.x64.3.3578.1870\build\cef.redist.x64.props" Condition="Exists('..\packages\cef.redist.x64.3.3578.1870\build\cef.redist.x64.props')" />
   7:    <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
   8:    <PropertyGroup>
   9:      <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  10:      <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  11:      <ProjectGuid>{18035453-EDF5-4C2A-9E65-8D35E8D11BDC}</ProjectGuid>
  12:      <OutputType>Exe</OutputType>
  13:      <StartupObject>Jotform_Addins2.Starter</StartupObject>
  14:      <RootNamespace>Jotform_Addins2</RootNamespace>
  15:      <AssemblyName>Jotform_Addins2</AssemblyName>
  16:      <FileAlignment>512</FileAlignment>
  17:      <MyType>Console</MyType>
  18:      <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
  19:      <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
  20:      <Deterministic>true</Deterministic>
  21:      <NuGetPackageImportStamp>
  22:      </NuGetPackageImportStamp>
  23:    </PropertyGroup>
  24:    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  25:      <PlatformTarget>x64</PlatformTarget>
  26:      <DebugSymbols>true</DebugSymbols>
  27:      <DebugType>full</DebugType>
  28:      <DefineDebug>true</DefineDebug>
  29:      <DefineTrace>true</DefineTrace>
  30:      <OutputPath>bin\Debug\</OutputPath>
  31:      <DocumentationFile>Jotform_Addins2.xml</DocumentationFile>
  32:      <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  33:      <Prefer32Bit>false</Prefer32Bit>
  34:    </PropertyGroup>
  35:    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  36:      <PlatformTarget>AnyCPU</PlatformTarget>
  37:      <DebugType>pdbonly</DebugType>
  38:      <DefineDebug>false</DefineDebug>
  39:      <DefineTrace>true</DefineTrace>
  40:      <Optimize>true</Optimize>
  41:      <OutputPath>bin\Release\</OutputPath>
  42:      <DocumentationFile>Jotform_Addins2.xml</DocumentationFile>
  43:      <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  44:    </PropertyGroup>
  45:    <PropertyGroup>
  46:      <OptionExplicit>On</OptionExplicit>
  47:    </PropertyGroup>
  48:    <PropertyGroup>
  49:      <OptionCompare>Binary</OptionCompare>
  50:    </PropertyGroup>
  51:    <PropertyGroup>
  52:      <OptionStrict>Off</OptionStrict>
  53:    </PropertyGroup>
  54:    <PropertyGroup>
  55:      <OptionInfer>On</OptionInfer>
  56:    </PropertyGroup>
  57:    <PropertyGroup>
  58:      <ApplicationIcon>Resources\logo-new%404x%281%29.ico</ApplicationIcon>
  59:    </PropertyGroup>
  60:    <PropertyGroup>
  61:      <ApplicationManifest>My Project\app.manifest</ApplicationManifest>
  62:    </PropertyGroup>
  63:    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
  64:      <DebugSymbols>true</DebugSymbols>
  65:      <DefineDebug>true</DefineDebug>
  66:      <DefineTrace>true</DefineTrace>
  67:      <OutputPath>bin\x64\Debug\</OutputPath>
  68:      <DocumentationFile>Jotform_Addins2.xml</DocumentationFile>
  69:      <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  70:      <DebugType>full</DebugType>
  71:      <PlatformTarget>x64</PlatformTarget>
  72:      <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  73:    </PropertyGroup>
  74:    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
  75:      <DefineTrace>true</DefineTrace>
  76:      <OutputPath>bin\x64\Release\</OutputPath>
  77:      <DocumentationFile>Jotform_Addins2.xml</DocumentationFile>
  78:      <Optimize>true</Optimize>
  79:      <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
  80:      <DebugType>pdbonly</DebugType>
  81:      <PlatformTarget>x64</PlatformTarget>
  82:      <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  83:      <Prefer32Bit>true</Prefer32Bit>
  84:    </PropertyGroup>
  85:    <ItemGroup>
  86:      <Reference Include="CefSharp, Version=71.0.2.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64">
  87:        <SpecificVersion>False</SpecificVersion>
  88:        <HintPath>..\packages\CefSharp.Common.71.0.2\CefSharp\x64\CefSharp.dll</HintPath>
  89:      </Reference>
  90:      <Reference Include="CefSharp.BrowserSubprocess, Version=71.0.2.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64">
  91:        <SpecificVersion>False</SpecificVersion>
  92:        <HintPath>..\packages\CefSharp.Common.71.0.2\CefSharp\x64\CefSharp.BrowserSubprocess.exe</HintPath>
  93:      </Reference>
  94:      <Reference Include="CefSharp.BrowserSubprocess.Core, Version=71.0.2.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64">
  95:        <SpecificVersion>False</SpecificVersion>
  96:        <HintPath>..\packages\CefSharp.Common.71.0.2\CefSharp\x64\CefSharp.BrowserSubprocess.Core.dll</HintPath>
  97:      </Reference>
  98:      <Reference Include="CefSharp.Core, Version=71.0.2.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64">
  99:        <SpecificVersion>False</SpecificVersion>
 100:        <HintPath>..\packages\CefSharp.Common.71.0.2\CefSharp\x64\CefSharp.Core.dll</HintPath>
 101:      </Reference>
 102:      <Reference Include="CefSharp.WinForms, Version=71.0.2.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64">
 103:        <SpecificVersion>False</SpecificVersion>
 104:        <HintPath>..\packages\CefSharp.WinForms.71.0.2\CefSharp\x64\CefSharp.WinForms.dll</HintPath>
 105:      </Reference>
 106:      <Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
 107:        <EmbedInteropTypes>True</EmbedInteropTypes>
 108:      </Reference>
 109:      <Reference Include="System" />
 110:      <Reference Include="System.Data" />
 111:      <Reference Include="System.Deployment" />
 112:      <Reference Include="System.Drawing" />
 113:      <Reference Include="System.Windows.Forms" />
 114:      <Reference Include="System.Xml" />
 115:      <Reference Include="System.Core" />
 116:      <Reference Include="System.Xml.Linq" />
 117:      <Reference Include="System.Data.DataSetExtensions" />
 118:      <Reference Include="System.Net.Http" />
 119:    </ItemGroup>
 120:    <ItemGroup>
 121:      <Import Include="Microsoft.VisualBasic" />
 122:      <Import Include="System" />
 123:      <Import Include="System.Collections" />
 124:      <Import Include="System.Collections.Generic" />
 125:      <Import Include="System.Data" />
 126:      <Import Include="System.Drawing" />
 127:      <Import Include="System.Diagnostics" />
 128:      <Import Include="System.Windows.Forms" />
 129:      <Import Include="System.Linq" />
 130:      <Import Include="System.Xml.Linq" />
 131:      <Import Include="System.Threading.Tasks" />
 132:    </ItemGroup>
 133:    <ItemGroup>
 134:      <Compile Include="BrowserForm.Designer.vb">
 135:        <DependentUpon>BrowserForm.vb</DependentUpon>
 136:      </Compile>
 137:      <Compile Include="BrowserForm.vb">
 138:        <SubType>Form</SubType>
 139:      </Compile>
 140:      <Compile Include="Controls\ControlExtensions.vb" />
 141:      <Compile Include="CookieMonster.vb" />
 142:      <Compile Include="Form1.Designer.vb">
 143:        <DependentUpon>Form1.vb</DependentUpon>
 144:      </Compile>
 145:      <Compile Include="Form1.vb">
 146:        <SubType>Form</SubType>
 147:      </Compile>
 148:      <Compile Include="My Project\AssemblyInfo.vb" />
 149:      <Compile Include="My Project\Application.Designer.vb">
 150:        <AutoGen>True</AutoGen>
 151:        <DependentUpon>Application.myapp</DependentUpon>
 152:      </Compile>
 153:      <Compile Include="My Project\Resources.Designer.vb">
 154:        <AutoGen>True</AutoGen>
 155:        <DesignTime>True</DesignTime>
 156:        <DependentUpon>Resources.resx</DependentUpon>
 157:      </Compile>
 158:      <Compile Include="My Project\Settings.Designer.vb">
 159:        <AutoGen>True</AutoGen>
 160:        <DependentUpon>Settings.settings</DependentUpon>
 161:        <DesignTimeSharedInput>True</DesignTimeSharedInput>
 162:      </Compile>
 163:      <Compile Include="Starter.vb" />
 164:    </ItemGroup>
 165:    <ItemGroup>
 166:      <EmbeddedResource Include="BrowserForm.resx">
 167:        <DependentUpon>BrowserForm.vb</DependentUpon>
 168:      </EmbeddedResource>
 169:      <EmbeddedResource Include="Form1.resx">
 170:        <DependentUpon>Form1.vb</DependentUpon>
 171:      </EmbeddedResource>
 172:      <EmbeddedResource Include="My Project\Resources.resx">
 173:        <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
 174:        <LastGenOutput>Resources.Designer.vb</LastGenOutput>
 175:        <CustomToolNamespace>My.Resources</CustomToolNamespace>
 176:        <SubType>Designer</SubType>
 177:      </EmbeddedResource>
 178:    </ItemGroup>
 179:    <ItemGroup>
 180:      <None Include="My Project\app.manifest" />
 181:      <None Include="My Project\Application.myapp">
 182:        <Generator>MyApplicationCodeGenerator</Generator>
 183:        <LastGenOutput>Application.Designer.vb</LastGenOutput>
 184:      </None>
 185:      <None Include="My Project\Settings.settings">
 186:        <Generator>SettingsSingleFileGenerator</Generator>
 187:        <CustomToolNamespace>My</CustomToolNamespace>
 188:        <LastGenOutput>Settings.Designer.vb</LastGenOutput>
 189:      </None>
 190:      <None Include="App.config" />
 191:      <None Include="packages.config" />
 192:    </ItemGroup>
 193:    <ItemGroup>
 194:      <Content Include="Resources\chromium-256.png" />
 195:      <Content Include="Resources\logo-new%404x%281%29.ico" />
 196:      <Content Include="Resources\nav_left_green.png" />
 197:      <Content Include="Resources\nav_plain_green.png" />
 198:      <Content Include="Resources\nav_plain_red.png" />
 199:      <Content Include="Resources\nav_right_green.png" />
 200:    </ItemGroup>
 201:    <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
 202:    <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
 203:      <PropertyGroup>
 204:        <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
 205:      </PropertyGroup>
 206:      <Error Condition="!Exists('..\packages\cef.redist.x64.3.3578.1870\build\cef.redist.x64.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x64.3.3578.1870\build\cef.redist.x64.props'))" />
 207:      <Error Condition="!Exists('..\packages\cef.redist.x86.3.3578.1870\build\cef.redist.x86.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x86.3.3578.1870\build\cef.redist.x86.props'))" />
 208:      <Error Condition="!Exists('..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.props'))" />
 209:      <Error Condition="!Exists('..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.targets'))" />
 210:      <Error Condition="!Exists('..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.props'))" />
 211:      <Error Condition="!Exists('..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.targets'))" />
 212:    </Target>
 213:    <Import Project="..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.targets" Condition="Exists('..\packages\CefSharp.Common.71.0.2\build\CefSharp.Common.targets')" />
 214:    <Import Project="..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.targets" Condition="Exists('..\packages\CefSharp.WinForms.71.0.2\build\CefSharp.WinForms.targets')" />
 215:  </Project>


Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/CefSharp_ChromiumWebBrowser/Project.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>